Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests. #4

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading