Skip to content

[release-1.13] MM-71228 MM-72224 Add E2E test environment, CI, and expanded coverage - #758

Open
ogi-m wants to merge 3 commits into
release-1.13from
e2e-backport-release-1.13
Open

ogi-m wants to merge 3 commits into
release-1.13from
e2e-backport-release-1.13

Conversation

@ogi-m

@ogi-m ogi-m commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

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:

  1. MM-71228 Adding E2E test environment and CI #719 as-is (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.
  2. MM-72224 e2e: expand Playwright coverage and stabilize the sidebar to-do test #752 as-is (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.
  3. Adapt the suite to release-1.13:

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 permalinks fixmes), 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

NONE

avasconcelos114 and others added 3 commits December 1, 2026 23:01
* 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)
@ogi-m
ogi-m marked this pull request as ready for review December 1, 2026 23:06
@ogi-m
ogi-m requested a review from a team as a code owner December 1, 2026 23:06
@ogi-m
ogi-m requested a review from avasconcelos114 December 1, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants