Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task: add e2e test workflow #1989

Merged
merged 33 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
fcb3953
QA-1444 first test for JSUI in plawwright (#189)
lvu285 May 1, 2024
873b8b6
QA-1484 breadcrumb playwright (#192)
lvu285 Jun 14, 2024
7bfc813
QA-1495 Migrate test for documentField (#193)
lvu285 Jun 21, 2024
8b430b1
QA-1494 Test for Paper, ResultPerPage & ResultLayout (#194)
lvu285 Jul 3, 2024
6c18e07
new branch
lvu285 Jul 4, 2024
cdf43ee
QA-1505 Playwright test for Tab & Sort component (#201)
lvu285 Jul 9, 2024
86892b8
fix package-lock
lvu285 Jul 19, 2024
e735e0e
Qa 1538 dynamic facet (#212)
lvu285 Jul 25, 2024
a68fee4
QA-1553 Playwright test for searchbox (#214)
lvu285 Aug 13, 2024
dcb34fd
Quick fix for selector
lvu285 Aug 13, 2024
0d0a591
QA-1560 DynamicFacetRange & Facets tests (#215)
lvu285 Aug 19, 2024
721ac09
QA-1563 Playwright tests for Quickview, DidYouMean, SuggestPreview (#…
lvu285 Aug 22, 2024
ead7d3c
QA-1573: Convert test for Nested Query & OmniboxFacet, OmniboxAnalyti…
lvu285 Sep 9, 2024
826a442
add e2e test workflow
wmannard Oct 10, 2024
49f8f76
add temp push trigger
wmannard Oct 10, 2024
646a989
add defaults
wmannard Oct 10, 2024
a0e30dd
use default region, env
wmannard Oct 10, 2024
61bf534
use github runner
wmannard Oct 10, 2024
8d6142b
move e2e files to new folder
wmannard Oct 15, 2024
8c644fc
Merge branch 'source-repo' into JSUI-3542-move-playwright-tests
wmannard Oct 15, 2024
b0bc318
make QA owners of playwright dir
wmannard Oct 15, 2024
2f60548
fix owners of playwright dir
wmannard Oct 15, 2024
50904d1
simplify e2e job
wmannard Oct 15, 2024
cf776ec
Merge branch 'JSUI-3542-move-playwright-tests' into JSUI-3538-add-e2e…
wmannard Oct 15, 2024
2c28f47
add checkout step
wmannard Oct 15, 2024
5a07a28
add dependiencies param to playwright install
wmannard Oct 15, 2024
953377a
change ubuntu version
wmannard Oct 15, 2024
f77def5
change ubuntu version
wmannard Oct 15, 2024
200fae5
Merge branch 'master' of https://github.com/coveo/search-ui into JSUI…
wmannard Oct 15, 2024
b25d0f1
update playwright verison
wmannard Oct 15, 2024
d2f897b
change working dir
wmannard Oct 15, 2024
7fcb217
lock runner version
wmannard Oct 15, 2024
9143648
remove temporary trigger
wmannard Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
wmannard marked this conversation as resolved.
Show resolved Hide resolved

jobs:
test-job:
runs-on: ubuntu-24.04
wmannard marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Deploy JSUI beta version on Netlify
run: curl --request POST https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_BUILD_HOOK_ID }}
wmannard marked this conversation as resolved.
Show resolved Hide resolved

- 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"
}
}