@live-reload
Feature: Live reload search

Scenario: Live reload search hitting enter should not cause a full page reload
  Given I am on the homepage
  And I click 'View Digital Outcomes and Specialists opportunities'
  And I am on the 'Digital Outcomes and Specialists opportunities' page
  And I set the page reload flag
  When I enter 'Tea\n' in the 'search' field
  Then I see that the page has not been reloaded

Scenario: Live reload search button should not cause a full page reload
  Given I am on the homepage
  And I click 'View Digital Outcomes and Specialists opportunities'
  And I am on the 'Digital Outcomes and Specialists opportunities' page
  And I set the page reload flag
  And I enter 'Tea' in the 'search' field
  When I click the 'Search' button
  Then I see that the page has not been reloaded

@live-reload @skip-staging
Feature: Live reload search

Scenario: Live reload search hitting enter should not cause a full page reload
  Given I am on the homepage
  And I click 'View Digital Outcomes and Specialists opportunities'
  And I am on the 'Digital Outcomes and Specialists opportunities' page
  Then I see the 'Clear filters' link with href 'digital-outcomes-and-specialists/opportunities'
  And I set the page reload flag
  When I enter 'Tea\n' in the 'search' field
  Then I see that the page has not been reloaded
  And I see the 'Clear filters' link with href 'digital-outcomes-and-specialists/opportunities?q=Tea'

Scenario: Live reload search button should not cause a full page reload
  Given I am on the homepage
  And I click 'View Digital Outcomes and Specialists opportunities'
  And I am on the 'Digital Outcomes and Specialists opportunities' page
  Then I see the 'Clear filters' link with href 'digital-outcomes-and-specialists/opportunities'
  And I set the page reload flag
  And I enter 'Tea' in the 'search' field
  When I click the 'Search' button
  Then I see that the page has not been reloaded
  And I see the 'Clear filters' link with href 'digital-outcomes-and-specialists/opportunities?q=Tea'
Add checks for link text and href for live reload and add skip staging flag
Add checks for link text and href for live reload and add skip staging flag
