diff --git a/.github/workflows/e2e-certifier.yml b/.github/workflows/e2e-certifier.yml new file mode 100644 index 000000000..7220bf908 --- /dev/null +++ b/.github/workflows/e2e-certifier.yml @@ -0,0 +1,35 @@ +name: 'End-to-end certifier' + +on: + workflow_dispatch: + inputs: + environment: + description: The environment in which to run the job + default: dev + region: + description: The region in which to run the job + default: us-east-1 + package: + description: The package name + job: + description: The name of the job (as defined in the deployment config) + +jobs: + test-job: + runs-on: ubuntu-24.04 + steps: + - name: Deploy JSUI beta version on Netlify + run: curl --request POST https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_BUILD_HOOK_ID }} + + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install test dependencies + working-directory: ${{ github.workspace }}/playwright + run: | + npm install + npx playwright install --with-deps + + - name: Run tests + working-directory: ${{ github.workspace }}/playwright + run: npx playwright test diff --git a/playwright/package-lock.json b/playwright/package-lock.json index cad257e41..bb6d289d5 100644 --- a/playwright/package-lock.json +++ b/playwright/package-lock.json @@ -9,16 +9,16 @@ "version": "1.0.0", "license": "ISC", "devDependencies": { - "@playwright/test": "^1.36.2", - "@types/async-retry": "^1.4.1", + "@playwright/test": "1.48.0", + "@types/async-retry": "1.4.1", "@types/strip-color": "0.1.0", - "async-retry": "^1.3.1", - "chalk": "^4.1.2", - "child_process": "^1.0.2", - "dotenv": "^8.0.0", - "path": "^0.12.7", - "playwright": "^1.44.1", - "prettier": "^3.3.2", + "async-retry": "1.3.1", + "chalk": "4.1.2", + "child_process": "1.0.2", + "dotenv": "8.0.0", + "path": "0.12.7", + "playwright": "1.44.1", + "prettier": "3.3.2", "ts-node": "10.9.1" } }, @@ -56,45 +56,48 @@ } }, "node_modules/@playwright/test": { - "version": "1.43.1", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.48.0.tgz", + "integrity": "sha512-W5lhqPUVPqhtc/ySvZI5Q8X2ztBOUgZ8LbAFy0JQgrXZs2xaILrUcNO3rQjwbLPfGK13+rZsDa1FpG+tqYkT5w==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "playwright": "1.43.1" + "playwright": "1.48.0" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" } }, "node_modules/@playwright/test/node_modules/playwright": { - "version": "1.43.1", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.48.0.tgz", + "integrity": "sha512-qPqFaMEHuY/ug8o0uteYJSRfMGFikhUysk8ZvAtfKmUK3kc/6oNl/y3EczF8OFGYIi/Ex2HspMfzYArk6+XQSA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.43.1" + "playwright-core": "1.48.0" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" }, "optionalDependencies": { "fsevents": "2.3.2" } }, "node_modules/@playwright/test/node_modules/playwright-core": { - "version": "1.43.1", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.48.0.tgz", + "integrity": "sha512-RBvzjM9rdpP7UUFrQzRwR8L/xR4HyC1QXMzGYTbf1vjw25/ya9NRAVnXi/0fvFopjebvyPzsmoK58xxeEOaVvA==", "dev": true, - "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" } }, "node_modules/@tsconfig/node10": { @@ -118,9 +121,10 @@ "license": "MIT" }, "node_modules/@types/async-retry": { - "version": "1.4.8", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@types/async-retry/-/async-retry-1.4.1.tgz", + "integrity": "sha512-hDI5Ttk9SUmDLcD/Yl2VuWQRGYZjJ7aaJFeRlomUOz/iTKSE7yA55SwY87QwjiZgwhMlVAKoT1rl08UyQoheag==", "dev": true, - "license": "MIT", "dependencies": { "@types/retry": "*" } @@ -183,11 +187,12 @@ "license": "MIT" }, "node_modules/async-retry": { - "version": "1.3.3", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.1.tgz", + "integrity": "sha512-aiieFW/7h3hY0Bq5d+ktDBejxuwR78vRu9hDUdR8rNhSaQ29VzPL4AoIRG7D/c7tdenwOcKvgPM6tIxB3cB6HA==", "dev": true, - "license": "MIT", "dependencies": { - "retry": "0.13.1" + "retry": "0.12.0" } }, "node_modules/chalk": { @@ -240,11 +245,26 @@ } }, "node_modules/dotenv": { - "version": "8.6.0", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.0.0.tgz", + "integrity": "sha512-30xVGqjLjiUOArT4+M5q9sYdvuR4riM6yK9wMcas9Vbp6zZa+ocC9dp6QoftuhTPhFAiLK/0C5Ni2nou/Bk8lg==", "dev": true, - "license": "BSD-2-Clause", "engines": { - "node": ">=10" + "node": ">=8" + } + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, "node_modules/has-flag": { @@ -325,9 +345,10 @@ } }, "node_modules/retry": { - "version": "0.13.1", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4" } diff --git a/playwright/package.json b/playwright/package.json index 68710704e..e12ced3d9 100644 --- a/playwright/package.json +++ b/playwright/package.json @@ -8,16 +8,16 @@ "author": "", "license": "ISC", "devDependencies": { - "@playwright/test": "^1.36.2", - "@types/async-retry": "^1.4.1", + "@playwright/test": "1.48.0", + "@types/async-retry": "1.4.1", "@types/strip-color": "0.1.0", - "async-retry": "^1.3.1", - "chalk": "^4.1.2", - "child_process": "^1.0.2", - "dotenv": "^8.0.0", - "path": "^0.12.7", - "playwright": "^1.44.1", - "prettier": "^3.3.2", + "async-retry": "1.3.1", + "chalk": "4.1.2", + "child_process": "1.0.2", + "dotenv": "8.0.0", + "path": "0.12.7", + "playwright": "1.44.1", + "prettier": "3.3.2", "ts-node": "10.9.1" } }