You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/website/src/routes/docs/headless/contributing/index.mdx
+40-21Lines changed: 40 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ Currently, the component testing integration for Qwik & Playwright is in develop
110
110
111
111
#### Getting started w/ testing
112
112
113
-
Here's an example way of getting a testid of the `Hero` select docs example, without affecting any visible markup.
113
+
Here's an example way of getting a testid of the `Hero` select docs example in `index.mdx`, without affecting any visible markup.
114
114
115
115
```tsx
116
116
<divdata-testid="select-hero-test">
@@ -121,6 +121,10 @@ Here's an example way of getting a testid of the `Hero` select docs example, wit
121
121
Then, we get our testDriver, you can think of it as reusable code we use throughout the test. For example, in the Select component we constantly grab the listbox, trigger, etc.
To run the tests, use the `nx e2e website`command. You can also do `--ui` to open the UI mode (which is pretty awesome!)
193
+
To run the tests, use the `pnpm playwright` (only in my branch) command, or the `nx e2e website`longform. You can also do `--ui` to open the UI mode (which is pretty awesome!)
177
194
178
-
> This example is in `spec.select.tsx` in the e2e folder of the website.
195
+
> This example is in `spec.select.tsx` in the `src/components/select` folder of the website.
179
196
180
197
Once we've added a failing test with what we expect, we can now go ahead and implement the feature for that!
181
198
199
+
Heads up, I (Jack) am also relatively new to playwright myself 😅. I'm guessing there is a way to not need the testDriver to be consumed on each test. Feel free to experiment!
200
+
182
201
## Docs
183
202
184
203
We use [MDX](https://mdxjs.com/docs/what-is-mdx/) for interactive markdown.
0 commit comments