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: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,12 @@ To start developing the extension locally, follow these steps:
108
108
109
109
You can now test and debug the extension on _Chrome_ or _Firefox_.
110
110
111
+
#### Testing
112
+
113
+
To run unit tests, use `yarn test`. We use [Jest](https://jestjs.io/) for testing.
114
+
115
+
For end-to-end tests, see the [e2e/README.md](e2e/README.md) file.
116
+
111
117
### Resources
112
118
113
119
- A YouTube video for the [Ma'akaf community](https://discord.gg/fyZ8A5nb) about [how to start to contribute to this project](https://youtu.be/OnxaCXPAWAs) (in Hebrew).
@@ -120,6 +126,7 @@ You can now test and debug the extension on _Chrome_ or _Firefox_.
1. Go to the right e2e file and add a test with specific name.
6
+
2. create the test with minimal overhead (fewer locators, fewer API calls, etc).
7
+
8
+
## Run and Debug a test
9
+
10
+
1. download the [Playwright Test for VSCode](https://marketplace.visualstudio.com/items?itemName=ms-playwright.playwright) extension.
11
+
2. You will see a small green play button near the test you created or want to run.
12
+
3. If the test failed you need to debug it.
13
+
4. Go to the fixtures file and remove the `--headless=new` from args (this will run the test on a browser on your computer), you can also uncomment the `slowMo` for seeing each step.
14
+
5. Run in your terminal `yarn e2e:debug`. It will open a Playwright modal with a browser so you can see and debug each step.
15
+
6. Fix the problems and run also in headless mode (undo step 4)
16
+
17
+
## Problems?
18
+
19
+
Ask around, and check the [Playwright docs](https://playwright.dev/docs/intro).
20
+
Found an issue? Did we miss a case?
21
+
You're welcome to open an issue or talk with us on [Discord](https://discord.gg/H2SMbzh5).
0 commit comments