Repository navigation
Conversation
* MM-71228 Adding E2E test suites with local community edition * MM-71228 Adding E2E workflow * Making general improvements and fixes * Applying PR feedback * Applying PR feedback - removing credentials persistence, making e2e tests run through normal user accounts, docker compose localhost binding, allow retries in CI * Forking E2E behavior based on whether server is disposable * Updating texts to be more accurate * Replacing server keyword with env in e2e commands * Updating test suite to match newly merged PRs * Applying PR feedback on following e2e guidelines (cherry picked from commit 74cdddd)
…-do test (#752) Add E2E coverage for four previously-untested areas and fix a pre-existing flaky test. All changes are under e2e/ (no plugin code), following the suite's Page Object Model and documentation conventions. New coverage: - Create-issue modal: select a label, assignee, and milestone and assert they land on the created GitLab issue. - /gitlab disconnect: unlinks the account, the RHS reverts to Connect, and /gitlab me reports the account is not linked. - /gitlab unsubscribe: removes a subscription and rejects a missing repo. - Permalink code preview: added as fixme (feature only matches gitlab.com and EnableCodePreview defaults to public, so it cannot run on the self-hosted private stack). The gitlab.com-only match is a product bug; a separate ticket will track it. Fix: - Flaky sidebar to-do count: the webapp ignores a Refresh click while an earlier LHS fetch is still in flight, and the test clicked Refresh again ~0.5s after the previous one, so the cleared count was never fetched. GitlabSidebar.refresh() now waits for the refresh spinner to stop, clicks, and waits for its own lhs-data response. A waitForNoTodos poll also makes sure GitLab reports zero pending to-dos before the refresh. Supporting helpers: - CreateIssueModal gains selectLabel/selectAssignee/selectMilestone and expectSelections. Picks hover the exact option before Enter, so a similar name (a-bug when picking bug) is never committed; the test adds that decoy. selectProject waits until the label, assignee, and milestone endpoints have all been requested and none is in flight, then lets the page apply the responses. This works around a webapp bug (each picker fetches twice and a late response clears an earlier pick); a separate ticket will track it, and the wait can go once it is fixed. - GitlabSidebar.refresh waits out an in-flight refresh and for its own fetch. - gitlab_api: createGroupMilestone (the plugin lists project milestones plus parent group ones) and findIssue for detailed assertions. Verified against the Dockerized stack (Mattermost 12, GitLab CE 18.11) under Node 20, rebased on master: 37 passed, 1 skipped (permalinks fixme), 0 failed. The sidebar test passed 5/5 and the attribute test 6/6 with --repeat-each. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> (cherry picked from commit 023eb62)
- Default the compose stack to Mattermost 11.11: release-1.x plugins bundle React 18 or older and cannot run on Mattermost 12. - Match the issue modals by their innermost dialog: on Mattermost 11 the modal's root wrapper also has role="dialog". - Drop or adjust assertions for features that are not on release-1.13: - issue_assigns subscriptions and issue assignment channel posts / unassign DM (#709) - already-connected reply from /gitlab connect (#720) - setting name and value in /gitlab settings reply (#721)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Cherry-pick of #719 (74cdddd) and #752 (023eb62) onto release-1.13, so PRs into the release branch (patch releases) run the Playwright E2E suite. Same approach as release-2.0 (#754).
Three commits:
git cherry-pick -x, no conflicts), including its small webapp changes (data-testids /aria-labels and the two link-tooltip fixes), as on release-2.0.git cherry-pick -x). The README coverage-table conflict is resolved the same way as on release-2.0 and release-2.1, so the README matches theirs apart from commit 3.MM_IMAGEindocker-compose.ymland the README). this branch bundles React 18 and does not have the React 19 externals from MM-70684, so they cannot run on Mattermost 12.role="dialog", so the title matched two nested dialogs.issue_assignssubscriptions, issue assignment channel posts and the unassign DM (MM-67255 Added support to issue assigned events to webhook subscriptions #709)/gitlab connect(Fix already-connected response for /gitlab connect command (#593) #720)/gitlab settingsreply (Specify setting name and value in settings command response (#594) #721)Later spec tweaks from #726 and #744 and the upgrade tests (#753) are not included, as on release-2.0.
Testing
Full suite locally against the compose stack (Mattermost 11.11, GitLab CE 18.11) with the release-1.13 plugin build: 35 passed, 2 skipped (the MM-71329 and
permalinksfixmes), the same as release-2.0. The full suite also runs in this PR's E2E workflow.Ticket Link
https://mattermost.atlassian.net/browse/MM-72257 (GitLab subtask of https://mattermost.atlassian.net/browse/MM-72256)
Cherry-pick of MM-71228 (#719) and MM-72224 (#752).
Release Note