Skip to content

Commit cf1dd6e

Browse files
committed
03/01: mention that tests became headless
1 parent f11d491 commit cf1dd6e

File tree

1 file changed

+2
-0
lines changed
  • exercises/03.best-practices/01.problem.accessibility-selectors

1 file changed

+2
-0
lines changed

exercises/03.best-practices/01.problem.accessibility-selectors/README.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ The way you access different elements in tests matters a lot. It can vary from g
88

99
👨‍💼 In this exercise, your task is to write a simple integration test for a new React component called <InlineFile file="./src/discount-code-form.tsx">
1010
`<DiscountCodeForm />`</InlineFile>. And what do you know—this component is a _form_! This means plenty of elements for you to locate. Use locators like `.getByRole()` and `.getByLabelText()`, and write assertions that make sure all the necessary form elements are present on the page.
11+
12+
> Note that I've made the browser tests run in a _headless_ mode by setting `test.browser.headless` to `true` in <InlineFile file="./vite.config.ts">`vite.configt.ts`</InlineFile>.

0 commit comments

Comments
 (0)