-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5343 from Gustry/flaky-tests
Tests - Make flaky tests failing
- Loading branch information
Showing
5 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Mock | ||
|
||
### Helper | ||
|
||
To save request response in a file for mocking, you can copy/paste this snippet temporary. | ||
|
||
Please consider using a low size PDF file, for testing, if there isn't test done on the PDF file itself, like : | ||
* [tests/qgis-projects/tests/media/test.pdf](../../../qgis-projects/tests/media/test.pdf) | ||
* [tests/end2end/playwright/mock/playwright-test.pdf](./playwright-test.pdf) | ||
|
||
```js | ||
const downloadPromise = page.waitForEvent('download'); | ||
const download = await downloadPromise; | ||
await download.saveAs(path.join(__dirname, 'mock/print_in_project_projection/baselayer/Paysage_A4.pdf')); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters