Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Aug 6, 2024
1 parent 90fd6d2 commit 87eaf11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/features/duckduckgoSearch.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Background: Background name

@duckduckgo
Scenario: Searching DuckDuckGo
When I set "nightwatchjs" to the inputfield "#search_form_input_homepage"
When I set "nightwatchjs" to the inputfield "input[name=q]"
And I press "ENTER"
Then I expect that container "#links" contains the text "Nightwatch.js"
Then I expect that container "#react-layout" contains the text "Nightwatch.js"

6 changes: 3 additions & 3 deletions tests/features/githubSearch.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Feature: Github test
Scenario: open URL
Given I open the url "https://github.com/"
Then I expect the url to contain "github.com"
And I expect that the title is "GitHub: Where the world builds software · GitHub"
And I expect that the title is GitHub: Let’s build from here · GitHub"
@githubSearch
Scenario: search for nightwatch repository
Given I open the url "https://github.com/search"
And I clear the inputfield "[placeholder='Search GitHub']"
And I add "nightwatch" to the inputfield "[placeholder='Search GitHub']"
When I press "ENTER"
Then I expect that element ".header-search-input" contains the text "nightwatch"
And I expect that container ".repo-list-item:first-child" contains the text "End-to-end testing framework written in Node.js and using the W3C Webdriver API"
Then I expect that container "div[data-testid='results-list']:first-child" contains the text "end-to-end testing framework written in Node.js"

0 comments on commit 87eaf11

Please sign in to comment.