Code problem details:
Description:
- This practical challenge is to build browser based tests
- The production version of the website we are trying to test is https://start.duckduckgo.com/
- The traffic page url is https://start.duckduckgo.com/traffic
- In this fictitious example you are the automation tester in the team
- The business analyst has written the below acceptance criteria to be implemented
- The developers have completed their work, you need to write automated tests to validate the application is working as intended
Given I am on the homepage When I look at the page Then I expect to see the duckduckgo logo on the page
Given I am on the homepage When I type "super" into the search box Then I expect to see exactly 10 suggestions in the typeahead dropdown
Given I am on the homepage When I type "supercalafragalistic" into the search box Then I expect the first result to be "supercalafragalisticexpialadoshus"
Given I am on the homepage When I click on the hamburger menu in the top right Then I expect to see a themes link
Given I am on the homepage When When I click on the themes link then click on the dark mode theme button Then My page background should change colour
Given I am on the homepage
When I go to the homepage and type <see-below-test-data-table>
then click the maginifying glass
Then I should get 10 results on the results page
Data:
Back to the future
BMX Bandits
Rocky IV
Short Circuit
The Terminator
Ferris Bueller's day off
Given I am on the traffic page When I click on the 2018 Traffic section Then I should see all the months listed in the order from Dec to Jan And The Total Direct Queries should be equal to the sum of all the total directs from each month
- Spend as little or as much time as you like on the challenge.
- Use whatever language and framework you want
- Include this readme in your solution and document setup instructions and pre-requisites to run your solution
- The output of the efforts must be committed back into a Public Repo in Github and the URL shared back for review.
- Using a BDD natural language solution implementation would be preferred