Skip to content

Commit

Permalink
ADD: Test
Browse files Browse the repository at this point in the history
  • Loading branch information
neo-garaix committed Dec 3, 2024
1 parent 98550c9 commit 2659c19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions tests/end2end/playwright/print.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,4 +710,14 @@ test.describe('Error while printing', () => {

await expect(page.locator("#message > div:last-child")).toHaveClass(/alert-danger/);
});

test('Remove print overlay when switching to another minidock', async ({ page }) => {
await page.locator('#button-print').click();

await page.locator('#button-selectiontool').click();

await page.waitForTimeout(200); // wait to be sure tooltip is fully shown

expect(await page.locator('#newOlMap').screenshot()).toMatchSnapshot('print-selection.png');
});
});

0 comments on commit 2659c19

Please sign in to comment.