question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Context:

  • 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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
raisedadeadcommented, May 18, 2020

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.

1reaction
Twaha-Rahmancommented, May 21, 2020

Ok… I will look into Cypress when I have some time. Thanks for the quick response!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found