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

WIP: Playwright with shared repo, compared to open Playwright PR #235

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 13 additions & 10 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Playwright Tests
on:
push:
branches:
- master
tags:
- "v*"
pull_request:
workflow_run:
workflows: ["ci"]
types:
- completed
workflow_dispatch:

env:
Expand Down Expand Up @@ -97,6 +98,8 @@ jobs:
steps:
- name: ci/checkout-repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: 'true'

- name: ci/setup-go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
Expand Down Expand Up @@ -161,12 +164,12 @@ jobs:

- name: ci/install-plugin-playwright-deps
run: |
cd e2e/playwright
npm ci
cd e2e/playwright/mattermost-plugin-e2e-test-utils
npm i

- name: ci/tsc
run: |
cd e2e/playwright
cd e2e/playwright/mattermost-plugin-e2e-test-utils
npm run tsc

# - name: ci/lint
Expand All @@ -176,20 +179,20 @@ jobs:

- name: ci/run-playwright-tests
run: |
cd e2e/playwright
cd e2e/playwright/mattermost-plugin-e2e-test-utils
npm run test-ci
env:
PW_BASE_URL: ${{ env.MM_SERVICESETTINGS_SITEURL }}

- name: ci/move-artifacts
if: success() || failure()
run: |
cd e2e/playwright
cd e2e/playwright/mattermost-plugin-e2e-test-utils
mkdir results
mv playwright-report results

- uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: test-results
path: e2e/playwright/results
path: e2e/playwright/mattermost-plugin-e2e-test-utils/results
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "e2e/playwright/mattermost-plugin-e2e-test-utils"]
path = e2e/playwright/mattermost-plugin-e2e-test-utils
url = https://github.com/mattermosttest/mattermost-plugin-e2e-test-utils.git
7 changes: 1 addition & 6 deletions e2e/playwright/.gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
node_modules/
/blob-report/
/playwright/.cache/
.env
screenshots
playwright-report
test-results
node_modules
.auth-user.json
.eslintcache
37 changes: 0 additions & 37 deletions e2e/playwright/README.md

This file was deleted.

1 change: 1 addition & 0 deletions e2e/playwright/mattermost-plugin-e2e-test-utils
Loading
Loading