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
If you're on WSL, follow [these steps](https://github.com/microsoft/WSL/issues/3161#issuecomment-451863149). For more background, see [this guide](https://240dc.com/wsl2-add-a-local-ssl-certificate-with-mkcert/), but rather execute the commands as shown in the first link. It's a bit tedious, but you will get there.
39
39
40
+
Playwright tests do not need those certificates. The local and CI test setup starts Vite over plain `http` because the Office APIs are mocked in that scenario.
41
+
40
42
### Debug
41
43
42
44
In PowerPoint, press `Ctrl+Shift+I` when the focus is on the Add-in task pane. This will open the dev console of the embedded web view where you can see network requests, the console output etc.
@@ -47,6 +49,19 @@ In PowerPoint, press `Ctrl+Shift+I` when the focus is on the Add-in task pane. T
47
49
npm run validate-manifest
48
50
```
49
51
52
+
## Playwright Tests
53
+
54
+
```sh
55
+
# Install necessary dependencies first
56
+
npx playwright install-deps chromium
57
+
npx playwright install chromium
58
+
59
+
# Run tests (or even easier, just use the Playwright VSCode extension)
60
+
# Note that a dedicated test webserver will automatically be started for the tests,
61
+
# see the playwright.config.ts for details.
62
+
npm run test
63
+
```
64
+
50
65
## Test production-like environment
51
66
52
67
All you have to do is sideload the `manifest.prod.xml` instead of the manifest used for local development `manifest.xml`. To do so, copy the `manifest.prod.xml` to some `tmp/` folder that you have added to the PowerPoint Trust Center (see above) and rename the file to `manifest.xml` such that PowerPoint recognizes it.
@@ -58,3 +73,7 @@ If you have used another manifest beforehand, clear the office cache as describe
58
73
```
59
74
60
75
The production manifest has URLs configured to point to the site hosted on GitHub Pages. This way, you can see if everything works fine. All we ship to the PowerPoint Marketplace is the Manifest file in the end.
0 commit comments