Repository navigation
test(e2e): Mattermost webapp interaction, channel UI, and downloads #3857
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
db20b56
E2E: Playwright harness, fixtures, and CI wiring (1/10).
yasserfaraazkhan f46ebbc
E2E: Main-process test hooks and shared launch helpers (2/10).
yasserfaraazkhan 4c86fea
E2E: Mattermost shell helpers and bookmarks/custom groups specs (3/10).
yasserfaraazkhan a2f373b
Merge origin/master into e2e/03-mattermost-shell
yasserfaraazkhan 17086f2
Address CodeRabbit review on mattermost shell E2E helpers
yasserfaraazkhan fd75868
E2E: Channel menu helper and Mattermost UI specs (#3858)
yasserfaraazkhan 0922144
E2E: Downloads coverage (#3859)
yasserfaraazkhan 5670666
Address CodeRabbit review on mattermost E2E helpers and specs.
yasserfaraazkhan e81d4dd
Fix cancelled E2E status checks and add E2E/Override label support.
yasserfaraazkhan 6d81908
Address CodeRabbit review on downloads E2E helpers and specs.
yasserfaraazkhan 19b915b
Scope E2E workflow cancellation to the triggering PR branch.
yasserfaraazkhan f7aa85b
Harden bad-server and drag-and-drop E2E specs against real load failu…
yasserfaraazkhan b64f379
fix coderabbit comments
yasserfaraazkhan 7d492f2
Restore pull-requests:write for E2E label jobs.
yasserfaraazkhan 48d392f
fix coderabbit comments
yasserfaraazkhan eab67d9
fix ci
yasserfaraazkhan e560f83
fix(e2e): tighten TLS error match, clean up created teams, drop dead …
yasserfaraazkhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # yaml-language-server: $schema=https://json.schemastore.org/github-action.json | ||
| name: Cancel E2E workflow runs | ||
| description: >- | ||
| Cancel active Electron Playwright Tests runs and mark E2E commit statuses as | ||
| cancelled so PR checks do not show a green "No tests ran" result. | ||
|
|
||
| inputs: | ||
| pr_number: | ||
| description: Pull request number whose head SHA receives updated commit statuses | ||
| required: true | ||
| reason: | ||
| description: Commit status description when cancelling | ||
| required: false | ||
| default: E2E cancelled — tests skipped | ||
| cancel_workflow_runs: | ||
| description: When false, only update commit statuses (runs already stopped) | ||
| required: false | ||
| default: 'true' | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | ||
| env: | ||
| PR_NUMBER: ${{ inputs.pr_number }} | ||
| REASON: ${{ inputs.reason }} | ||
| CANCEL_WORKFLOW_RUNS: ${{ inputs.cancel_workflow_runs }} | ||
| with: | ||
| script: | | ||
| const {markE2EStatusesCancelled, cancelActiveE2ERuns} = require('./e2e/utils/github-actions.js'); | ||
| const prNumber = parseInt(process.env.PR_NUMBER, 10); | ||
| if (!Number.isFinite(prNumber)) { | ||
| throw new Error(`Invalid pr_number: ${process.env.PR_NUMBER}`); | ||
| } | ||
|
|
||
| const reason = process.env.REASON || 'E2E cancelled — tests skipped'; | ||
| const shouldCancelRuns = process.env.CANCEL_WORKFLOW_RUNS !== 'false'; | ||
|
|
||
| if (shouldCancelRuns) { | ||
| await cancelActiveE2ERuns({github, context, prNumber}); | ||
| } | ||
|
|
||
| const {data: pr} = await github.rest.pulls.get({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| pull_number: prNumber, | ||
| }); | ||
|
|
||
| await markE2EStatusesCancelled({ | ||
| github, | ||
| context, | ||
| sha: pr.head.sha, | ||
| reason, | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.