Skip to content

Commit

Permalink
Docstring to save response to file for mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Feb 2, 2025
1 parent 06f84c3 commit 2fd85e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/end2end/playwright/print_in_project_projection.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import * as path from 'path';
import { test, expect } from '@playwright/test';
import { gotoMap, expectParametersToContain } from './globals';

/**
* To save request response in a file for mocking
*
* const downloadPromise = page.waitForEvent('download');
* const download = await downloadPromise;
* await download.saveAs(path.join(__dirname, 'mock/print_in_project_projection/baselayer/Paysage_A4.pdf'));
*/

test.describe('Print in project projection', () => {

test.beforeEach(async ({ page }) => {
Expand Down

0 comments on commit 2fd85e2

Please sign in to comment.