From 45227a089e62e0fd145cad3352041954c64fe6b1 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 15 Nov 2021 22:21:38 +0100 Subject: [PATCH] Try to enable smoketests also on webkit --- .github/workflows/ci.yml | 3 +++ package.json | 1 + test/smoke/runner.js | 2 +- test/smoke/smoke.test.js | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 311f2148..8ebfc069 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,9 @@ jobs: - name: Install Playwright run: npm run playwright-install + - name: Install OS Dependencies for Playwright + run: sudo npm run playwright-install-deps + - name: Check prettier run: npm run prettier-check diff --git a/package.json b/package.json index 3c0b1088..a48cf8a4 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "gulp": "node ./node_modules/gulp/bin/gulp.js", "import-typescript": "node ./build/importTypescript.js", "playwright-install": "node ./node_modules/playwright/install.js", + "playwright-install-deps": "playwright install-deps", "postinstall": "node build/postinstall.js", "prettier-check": "prettier --check .", "prettier": "prettier --write .", diff --git a/test/smoke/runner.js b/test/smoke/runner.js index a51b828b..2b72d74f 100644 --- a/test/smoke/runner.js +++ b/test/smoke/runner.js @@ -38,7 +38,7 @@ async function runTests() { for (const type of ['amd', 'webpack']) { await runTest(type, 'chromium'); await runTest(type, 'firefox'); - // await runTest(type, 'webkit'); + await runTest(type, 'webkit'); } } diff --git a/test/smoke/smoke.test.js b/test/smoke/smoke.test.js index 65758322..0dbccacf 100644 --- a/test/smoke/smoke.test.js +++ b/test/smoke/smoke.test.js @@ -63,7 +63,7 @@ afterEach(async () => { await page.close(); }); -describe('Smoke Test', () => { +describe(`Smoke Test '${TESTS_TYPE}'`, () => { it('`monacoAPI` is exposed as global', async () => { assert.strictEqual(await page.evaluate(`typeof monacoAPI`), 'object'); });