EduFlow
Testing JavaScript Apps

Checkpoint: End-to-End with Playwright

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

The amount field is <label for="amount">Amount</label><input id="amount" name="amount" placeholder="0.00">. Which Playwright locator is best?

Question 2 of 5

Logging in takes 3 seconds. Forty tests need a logged-in user but never change the account. What is the best approach?

Question 3 of 5

In a failed test’s trace, the click on “Settle up” succeeded, and the DOM snapshot right after it shows a “Session expired, please sign in” toast. What should you investigate first?

Question 4 of 5

You want to test that the group page shows “Could not load this group” when the API answers 503. What do you do?

Question 5 of 5

A test always passes with --workers=1 and sometimes fails with --workers=4. What is the first suspect?

5 questions unanswered