Skip to content

Commit

Permalink
Fix system dependency for copy-pasting text in test
Browse files Browse the repository at this point in the history
  • Loading branch information
prushforth committed Sep 25, 2023
1 parent bb4b645 commit 396308f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/e2e/core/layerContextMenu.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ test.describe('Playwright Layer Context Menu Tests', () => {
});

test('Copy layer with relative src attribute', async () => {
await page.reload();
await page.hover(
'div > div.leaflet-control-container > div.leaflet-top.leaflet-right > div'
);
Expand All @@ -168,8 +169,10 @@ test.describe('Playwright Layer Context Menu Tests', () => {

await page.keyboard.press('l');
await page.click('body > textarea#messageLayer');
await page.keyboard.press('Control+a');
await page.keyboard.press('Backspace');
// reload is better than deleting text, because of cross-platform issue
// with copy-pasting text on Windows/Linux
// await page.keyboard.press('Control+a');
// await page.keyboard.press('Backspace');
await page.keyboard.press('Control+v');
const copyLayer = await page.$eval(
'body > textarea#messageLayer',
Expand Down

0 comments on commit 396308f

Please sign in to comment.