diff options
| author | Darius Jahandarie <djahandarie@gmail.com> | 2023-11-10 00:05:01 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-10 00:05:01 +0000 | 
| commit | 6b51d59fce9c56f3b1e069f620c5064f8cb51406 (patch) | |
| tree | 839f379feabe210433278974a975297cec46a97e /test/playwright/visual.spec.js | |
| parent | b7d3cef68bc509d0dc907b380f2d1d665aa19149 (diff) | |
| parent | 2cd7b14333a727418584d95c71ee6cb10b9a4197 (diff) | |
Merge pull request #310 from themoeway/playwright-esm
Change playwright scripts to use ESM
Diffstat (limited to 'test/playwright/visual.spec.js')
| -rw-r--r-- | test/playwright/visual.spec.js | 12 | 
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 +});  |