Tests in Browser
See original GitHub issueContext:
-
We have been dreading this problem for years (see #4201). But it’s time we do the tests in browser.
-
Stuart (
@bouncey
) and Oliver (@ojeytonwilliams) have laid the initial foundation by integrating Cypress(see #37053). This was not available in our earlier days, and has been quite a popular tool for automation testing. -
Alongside Cypress (which uses puppeteer which in turn enables you to work with headless chrome) we can now do browser tests.
Goal (each requirement below can be a PR of its own)
- Create a test suite that can run against all challenges (only for certifications that we offer).
- Create and add suites for testing user workflows.
- Sign up / Sign in
- Email change / update
- Changes to profile data
- a11y tests and lighthouse tests?
- Create and add suites for testing navigations and layouts across devices.
- Update documentation about e2e tests
- … add more.
Nice to have:
- Challenge tests could be run only for changes on PRs and all tests when on master?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Browser Tests - The Chromium Projects
Browser tests are the framework used for integration tests of Chrome. As the name implies, they run inside the browser process. Background. In...
Read more >LambdaTest: Most Powerful Cross Browser Testing Tool Online
Perform manual or automated cross browser testing on 3000+ browsers online. Deploy and scale faster with the most powerful cross browser testing tool ......
Read more >BrowserStack: Most Reliable App & Cross Browser Testing ...
Instant access to 3000+ browsers and real iOS and Android devices for cross browser testing. Ship apps and websites that work for everyone,...
Read more >Top 10 Cross Browser Testing Tools In 2023 (Latest Ranking)
#2) BitBar. BitBar allows you to test your application across the latest and most popular real browsers and devices. Scale your testing by ......
Read more >Introduction to cross-browser testing - Learn web development
Cross-browser testing is the practice of ensuring that a website works across various browsers and devices. Web developers should consider:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We would still be using both in some form. Keep in mind that we would have a combination of both because, we would need both integration tests (also called unit tests), and user acceptance tests (also called e2e tests).
At the minute all the challenge tests are unit tests which are run at build time, but we would also want to be able to re-run the same tests in browser using our test runner, as e2e tests to identify broken functionalities like a real user would.
Ok… I will look into Cypress when I have some time. Thanks for the quick response!