Skip to content

Commit

Permalink
task: add e2e test workflow (#1989)
Browse files Browse the repository at this point in the history
* QA-1444 first test for JSUI in plawwright (#189)

* QA-1444 first test for JSUI in playwright

* QA-1484 breadcrumb playwright (#192)

* QA-1484 Playwright test for Breadcrumb JSUI
Co-authored-by: wmannard <[email protected]>

* QA-1495 Migrate test for documentField (#193)

* QA-1495 Migrate test for documentField

* QA-1494 Test for Paper, ResultPerPage & ResultLayout (#194)

* QA-1495 Test for Paper, ResultPerPage & ResultLayout

---------

Co-authored-by: wmannard <[email protected]>

* new branch

* QA-1505 Playwright test for Tab & Sort component (#201)

* QA-1505 Playwright test for Tab & Sort component

Co-authored-by: wmannard <[email protected]>

* fix package-lock

* Qa 1538 dynamic facet (#212)

* QA-1538 Dynamic category facet tests

* QA-1553 Playwright test for searchbox (#214)

* QA-1553 Playwright test for searchbox

* Quick fix for selector

* QA-1560 DynamicFacetRange & Facets tests (#215)

* QA-1563 Playwright tests for Quickview, DidYouMean, SuggestPreview (#216)

* QA-1573: Convert test for Nested Query & OmniboxFacet, OmniboxAnalytics, preferenceChange UA events (#217)

* QA-1573 Convert test for Nested Query & OmniboxFacet & OmniboxAnalytics events

* add e2e test workflow

JSUI-3538

* add temp push trigger

JSUI-3538

* add defaults

JSUI-3538

* use default region, env

JSUI-3538

* use github runner

JSUI-3538

* move e2e files to new folder

* make QA owners of playwright dir

JSUI-3542

* fix owners of playwright dir

JSUI-3542

* simplify e2e job

* add checkout step

JSUI-3538

* add dependiencies param to playwright install

JSUI-3538

* change ubuntu version

JSUI-3538

* change ubuntu version

JSUI-3538

* update playwright verison

JSUI-3538

* change working dir

JSUI-3538

* lock runner version

* remove temporary trigger

JSUI-3538

---------

Co-authored-by: Lucille Vu <[email protected]>
  • Loading branch information
wmannard and lvu285 authored Oct 15, 2024
1 parent cc57082 commit cd723ed
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 39 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/e2e-certifier.yml
Original file line number Diff line number Diff line change
@@ -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
81 changes: 51 additions & 30 deletions playwright/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit cd723ed

Please sign in to comment.