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 1, 2025
1 parent 0b4bd4f commit de038f2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/end2end/playwright/print_in_project_projection.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
// @ts-check
import * as path from 'path';
import { test, expect } from '@playwright/test';
import { gotoMap, checkParameters } from './globals';;
import { gotoMap, checkParameters } 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', () => {

Expand Down

0 comments on commit de038f2

Please sign in to comment.