From 396308f7fc37fbe547ca77ed72331ddb75695976 Mon Sep 17 00:00:00 2001 From: Peter Rushforth Date: Mon, 25 Sep 2023 13:33:47 -0400 Subject: [PATCH] Fix system dependency for copy-pasting text in test --- test/e2e/core/layerContextMenu.test.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/e2e/core/layerContextMenu.test.js b/test/e2e/core/layerContextMenu.test.js index d0d4f8d04..27ff8ede0 100644 --- a/test/e2e/core/layerContextMenu.test.js +++ b/test/e2e/core/layerContextMenu.test.js @@ -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' ); @@ -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',