Skip to content

Commit fd0e9f2

Browse files
authored
Use Playwright instead of testIM (#596)
* Use Playwright instead of testIM
1 parent 828b3ff commit fd0e9f2

File tree

16 files changed

+233
-318
lines changed

16 files changed

+233
-318
lines changed

.github/actions/e2e/action.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ inputs:
1919
license:
2020
description: 'license (b64) to use for e2e tests'
2121
required: true
22-
testim-access-token:
23-
description: 'testim access token'
24-
required: true
25-
testim-branch:
26-
description: 'testim branch'
27-
required: true
2822
dr-aws-access-key-id:
2923
description: 'Disaster Recovery AWS Access Key ID'
3024
required: true
@@ -90,8 +84,6 @@ runs:
9084
export SNAPSHOT_LICENSE_ID=${{ inputs.snapshot-license-id }}
9185
echo "${{ inputs.license }}" | base64 --decode > e2e/license.yaml
9286
echo "${{ inputs.snapshot-license }}" | base64 --decode > e2e/snapshot-license.yaml
93-
export TESTIM_ACCESS_TOKEN=${{ inputs.testim-access-token }}
94-
export TESTIM_BRANCH=${{ inputs.testim-branch }}
9587
export DR_AWS_S3_ENDPOINT=https://s3.amazonaws.com
9688
export DR_AWS_S3_REGION=us-east-1
9789
export DR_AWS_S3_BUCKET=kots-testim-snapshots
@@ -103,20 +95,20 @@ runs:
10395
uses: actions/upload-artifact@v4
10496
if: ${{ failure() }}
10597
with:
106-
name: ${{ github.job }}-support-bundle-host.tar.gz
98+
name: ${{ inputs.test-name }}-support-bundle-host.tar.gz
10799
path: ./e2e/support-bundle-host.tar.gz
108100
- name: Upload Cluster Support Bundle
109101
uses: actions/upload-artifact@v4
110102
if: ${{ failure() }}
111103
with:
112-
name: ${{ github.job }}-support-bundle-cluster.tar.gz
104+
name: ${{ inputs.test-name }}-support-bundle-cluster.tar.gz
113105
path: ./e2e/support-bundle-cluster.tar.gz
114106
- name: Upload Playwright Report
115107
id: upload-playwright-report
116108
uses: actions/upload-artifact@v4
117109
if: ${{ failure() }}
118110
with:
119-
name: ${{ github.job }}-playwright-report.tar.gz
111+
name: ${{ inputs.test-name }}-playwright-report.tar.gz
120112
path: ./e2e/playwright-report.tar.gz
121113
- name: Print instructions to view Playwright report
122114
if: ${{ failure() && steps.upload-playwright-report.outputs.artifact-url != '' }}

.github/workflows/pull-request.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ jobs:
204204
snapshot-license: ${{ secrets.STAGING_EMBEDDED_CLUSTER_SNAPSHOT_LICENSE }}
205205
license-id: ${{ secrets.STAGING_EMBEDDED_CLUSTER_LICENSE_ID }}
206206
license: ${{ secrets.STAGING_EMBEDDED_CLUSTER_LICENSE }}
207-
testim-access-token: ${{ secrets.TESTIM_ACCESS_TOKEN }}
208-
testim-branch: ${{ github.head_ref == 'main' && 'master' || github.head_ref }}
209207
dr-aws-access-key-id: ${{ secrets.TESTIM_AWS_ACCESS_KEY_ID }}
210208
dr-aws-secret-access-key: ${{ secrets.TESTIM_AWS_SECRET_ACCESS_KEY }}
211209

.github/workflows/release-dev.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,5 @@ jobs:
156156
snapshot-license: ${{ secrets.STAGING_EMBEDDED_CLUSTER_SNAPSHOT_LICENSE }}
157157
license-id: ${{ secrets.STAGING_EMBEDDED_CLUSTER_LICENSE_ID }}
158158
license: ${{ secrets.STAGING_EMBEDDED_CLUSTER_LICENSE }}
159-
testim-access-token: ${{ secrets.TESTIM_ACCESS_TOKEN }}
160-
testim-branch: 'master'
161159
dr-aws-access-key-id: ${{ secrets.TESTIM_AWS_ACCESS_KEY_ID }}
162160
dr-aws-secret-access-key: ${{ secrets.TESTIM_AWS_SECRET_ACCESS_KEY }}

e2e/README.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,9 @@ Make sure to update the application yaml files under kots-release-onmerge
6767
and kots-release-onpr directories if you create a new release of the remote
6868
application.
6969

70-
### Testim
70+
### Playwright
7171

72-
We use [Testim](https://www.testim.io/) to run end to end tests on the UI. The tests live within the
73-
"Embedded Cluster" Testim project.
72+
We use [Playwright](https://playwright.dev/) to run end to end tests on the UI.
73+
The tests live in the `playwright` directory.
7474

75-
When a git branch is pushed to GitHub, a cooresponding branch is created in
76-
Testim. The on-PR tests will run against the matching branch in Testim, so if you need
77-
to make changes to the tests as part of your PR, you should make those updates in your
78-
Testim branch.
79-
80-
When a PR is merged, the on-merge tests will run against the master branch in Testim.
81-
If you have made changes to the tests in your Testim branch, you should merge those changes
82-
to the master branch in Testim when merging your PR. Similarly, if you rebase your git
83-
branch from main, you may need to "rebase" your Testim branch (merge changes from master)
84-
if there have been changes to the tests.
85-
86-
For more details on version control in Testim, refer to the [Testim documentation](https://help.testim.io/docs/version-control-branches).
75+
For more details on how to write tests with Playwright, refer to the [Playwright documentation](https://playwright.dev/docs/writing-tests).

0 commit comments

Comments
 (0)