From c25e4c959e226174ff286ab7523eabcc55496bbb Mon Sep 17 00:00:00 2001 From: Darius Jahandarie Date: Thu, 9 Nov 2023 22:45:16 +0900 Subject: Change playwright scripts to use ESM --- test/playwright/visual.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/playwright/visual.spec.js') diff --git a/test/playwright/visual.spec.js b/test/playwright/visual.spec.js index 001f329f..2f46990f 100644 --- a/test/playwright/visual.spec.js +++ b/test/playwright/visual.spec.js @@ -15,13 +15,13 @@ * along with this program. If not, see . */ -const path = require('path'); +import path from 'path'; -const { - test, +import { expect, - root -} = require('./playwright-util'); + root, + test +} from './playwright-util'; test.beforeEach(async ({context}) => { // wait for the on-install welcome.html tab to load, which becomes the foreground tab @@ -97,4 +97,4 @@ test('visual', async ({page, extensionId}) => { await screenshot(2, i, el, {x: 15, y: 15}); i++; } -}); \ No newline at end of file +}); -- cgit v1.2.3