feat: Guided Tours E2E Tests - #2415
Merged
Merged
Conversation
🎩 PreviewA preview build has been created at: |
This was referenced Jun 12, 2026
This was referenced Jun 12, 2026
Collaborator
Author
3 tasks
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 12, 2026 23:36
586e87d to
6bffb2c
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 12, 2026 23:36
f7adb0c to
f9ccfa0
Compare
3 tasks
camielvs
commented
Jun 15, 2026
camielvs
commented
Jun 15, 2026
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 15, 2026 17:55
f9ccfa0 to
c1361f2
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 15, 2026 17:55
6bffb2c to
18c2dd3
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 15, 2026 18:47
18c2dd3 to
0e1b241
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
2 times, most recently
from
June 15, 2026 18:59
088f063 to
ef6a2d0
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 15, 2026 18:59
0e1b241 to
7f552ac
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 15, 2026 19:21
ef6a2d0 to
b583f84
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
2 times, most recently
from
June 15, 2026 19:32
3b6725f to
cf9670d
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 15, 2026 19:32
b583f84 to
cf0a129
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 15, 2026 19:49
cf9670d to
9a1a38d
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
2 times, most recently
from
June 15, 2026 20:13
03beccf to
d725087
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 15, 2026 20:13
9a1a38d to
ad996b1
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 26, 2026 00:20
9585c4f to
96f0bf2
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 26, 2026 00:37
a795168 to
02bc46f
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 26, 2026 00:37
96f0bf2 to
1632bef
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 26, 2026 00:53
02bc46f to
d723728
Compare
maxy-shpfy
reviewed
Jun 26, 2026
maxy-shpfy
reviewed
Jun 26, 2026
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 26, 2026 17:20
d723728 to
b559fab
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 26, 2026 17:20
19bac1e to
0d1cd7a
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 26, 2026 19:28
b559fab to
1ca1506
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 26, 2026 19:28
0d1cd7a to
3f17435
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 26, 2026 19:49
1ca1506 to
932e04d
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
2 times, most recently
from
June 26, 2026 20:52
4f4db72 to
dd06708
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
2 times, most recently
from
June 26, 2026 21:10
6849d2e to
9758cf2
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 26, 2026 21:10
dd06708 to
893f173
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 26, 2026 21:13
9758cf2 to
a8350a7
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
2 times, most recently
from
June 26, 2026 21:28
745d62c to
893a662
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
2 times, most recently
from
June 26, 2026 21:29
32680c5 to
63d62b1
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 26, 2026 21:29
893a662 to
21b6c60
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 26, 2026 21:30
63d62b1 to
fb96194
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 26, 2026 21:30
21b6c60 to
4e5942b
Compare
camielvs
force-pushed
the
06-12-feat_guided_tours_e2e_tests
branch
from
June 26, 2026 21:50
fb96194 to
efbe24a
Compare
camielvs
force-pushed
the
06-11-feat_guided_tours_completion_metrics
branch
from
June 26, 2026 21:50
4e5942b to
3bfbe19
Compare
maxy-shpfy
approved these changes
Jun 28, 2026
Collaborator
Author
Data-driven driver that walks each tour's JSON: asserts every step's data-tour anchor, performs the gating interaction (or clicks Next), and verifies advancement, finishing on the completion step. One thin spec per tour (navigating-editor, first-pipeline, subgraphs, using-secrets). The using-secrets spec drives the no-backend path: it fails the health ping and /api/secrets so the tour's in-memory mock backend handles the secret steps, runs them fully hands-on with normal gating, and asserts the Submit Run confirm stays disabled in mock mode. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

Description
This PR is 100% AI generated.
End-to-end tests that replicate and verify the exact flow of every guided tour, so a UI change that breaks a tour is caught here (and points at the tour + step to fix) rather than shipping a broken tour.
Rather than four bespoke specs, this is a single data-driven driver that reads each tour's real JSON definition and walks it the way a user would:
tests/e2e/tours/tourDriver.ts—runTour(page, tour)opens the tour, then for each step: asserts the step's spotlight anchor resolves in the DOM (the core regression signal), performs the gating interaction (or clicks Next for passive steps), and waits for the tour to advance (synchronised on the?step=NURL the tour writes). It finishes on the completion step. A handler exists for everyinteractiontype — drag-from-library, edge connection, task select, set-argument, undock/redock window, subgraph navigate/unpack, marquee multi-select, create-subgraph, and the full secrets flow.navigating-editor,first-pipeline,subgraphs,using-secrets. Each loads the shipped tour JSON vialoadTour(...), so the test tracks the real tour and new steps are covered automatically (modulo a brand-new interaction type needing a handler).eslint.config.js— teachplaywright/expect-expectthatrunTourasserts internally.Because the driver asserts each step's
data-tour*anchor, removing or renaming an anchor a tour depends on fails the matching step by design.The
using-secretsspec exercises the no-backend path from #2405 / #2406: it fails the health ping and/api/secretsso the tour's in-memory mock backend serves the secret steps. The tour runs fully hands-on with normal gating, no/api/secretscalls fire, and the Submit Run confirm is asserted disabled (real run not wired in mock mode).Related Issue and Pull requests
Closes https://github.com/Shopify/oasis-frontend/issues/644
Sits on top of the guided-tour stack (#2405 / #2406 and the framework/tour PRs below them).
Type of Change
Checklist
Test Instructions
pnpm test:e2e tests/e2e/tours/— all four tour specs pass (run in parallel against a local dev server).using-secretsspec drives the no-backend path: it routes the health ping and/api/secretsto fail, so the tour'smockBackendactivates and the in-memory mock serves the secret steps. It asserts no/api/secretscalls fire and that Submit Run stays disabled in mock mode.Additional Comments
The centered tour popover overlaps a few dialog controls (Add Secret / submit confirm / the "Use Secret" lock button). The driver dispatches the click directly to those elements (
clickThrough) so React's handler still fires — the only spot where it doesn't use a real mouse click.