aboutsummaryrefslogtreecommitdiff
path: root/test/playwright/visual.spec.js
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-11-09 22:45:16 +0900
committerDarius Jahandarie <djahandarie@gmail.com>2023-11-09 22:45:16 +0900
commitc25e4c959e226174ff286ab7523eabcc55496bbb (patch)
tree6d665cd55128760943216784c2b9144f5a0a2b48 /test/playwright/visual.spec.js
parentb7d3cef68bc509d0dc907b380f2d1d665aa19149 (diff)
Change playwright scripts to use ESM
Diffstat (limited to 'test/playwright/visual.spec.js')
-rw-r--r--test/playwright/visual.spec.js12
1 files changed, 6 insertions, 6 deletions
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 <https://www.gnu.org/licenses/>.
*/
-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
+});