Skip to content

test(notification-channel): align channels e2e with alerts settings tabs - #3593

Merged
baktun14 merged 2 commits into
mainfrom
test/notification-channel-e2e-settings-tabs
Aug 13, 2026
Merged

test(notification-channel): align channels e2e with alerts settings tabs#3593
baktun14 merged 2 commits into
mainfrom
test/notification-channel-e2e-settings-tabs

Conversation

@baktun14

@baktun14 baktun14 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Why

The beta e2e gate for console-web v3.164.0 failed on managed-wallet-notification-channels.spec.ts (run). #3583 folded Notification Channels into the Alerts page as local tabs: switching tabs no longer changes the URL, /alerts/notification-channels now redirects to /alerts, and saving a new channel navigates back to /alerts with the default Alerts tab selected. The spec still waited on the old URLs, so it timed out. Beta itself is healthy; only the spec was stale.

Part of CON-733.

What

  • AlertsPage.openNotificationChannelsTab() waits for the tab to become selected instead of relying on a URL change
  • After saving a channel, the spec waits for /alerts, where the app actually lands
  • The list verification step re-opens the Notification Channels tab, since the page comes back on the default Alerts tab

Beta e2e checks out the release tag, so this takes effect starting with the next console-web release; the failed v3.164.0 run cannot be re-greened by this PR.

Summary by CodeRabbit

  • Tests
    • Updated notification channel flow coverage to reflect the redirect to the Alerts page after creation.
    • Added verification that the Notification Channels tab is selected before checking the created channel.
    • Improved test stability by waiting for the tab selection to complete.

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c9b963a3-f9fe-4f7b-b09b-b7369a66df96

📥 Commits

Reviewing files that changed from the base of the PR and between d92edab and a33b860.

📒 Files selected for processing (1)
  • apps/deploy-web/tests/ui/pages/AlertsPage.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/deploy-web/tests/ui/pages/AlertsPage.ts

📝 Walkthrough

Walkthrough

The notification channel UI test now expects the alerts root redirect after creation. It then reopens the Notification Channels tab. The page object waits for the tab to become selected before verification.

Changes

Notification channel navigation

Layer / File(s) Summary
Align creation and verification navigation
apps/deploy-web/tests/ui/managed-wallet-notification-channels.spec.ts, apps/deploy-web/tests/ui/pages/AlertsPage.ts
The test waits for /alerts/ after creation, opens the Notification Channels tab, and waits for the tab selection state before locating the created channel.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Mergeability Score: ⚪ Minimal · up to a33b8

This PR updates notification-channel end-to-end tests for the Alerts tab navigation and redirect behavior without changing product runtime behavior; no actionable merge-blocking risk remains after normal checks and review.

Possibly related PRs

Suggested reviewers: github-actions

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/notification-channel-e2e-settings-tabs

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

apps/deploy-web/tests/ui/pages/AlertsPage.ts

ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.


Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.18%. Comparing base (24c4e6b) to head (a33b860).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3593      +/-   ##
==========================================
- Coverage   77.00%   76.18%   -0.83%     
==========================================
  Files        1150     1057      -93     
  Lines       30026    27589    -2437     
  Branches     7492     7023     -469     
==========================================
- Hits        23121    21018    -2103     
+ Misses       6076     5772     -304     
+ Partials      829      799      -30     
Flag Coverage Δ *Carryforward flag
api 89.04% <ø> (ø) Carriedforward from d92edab
deploy-web 67.37% <ø> (ø)
log-collector ?
notifications 93.84% <ø> (ø) Carriedforward from d92edab
provider-console 81.38% <ø> (ø) Carriedforward from d92edab
provider-inventory ?
provider-proxy 88.17% <ø> (ø) Carriedforward from d92edab
tx-signer ?

*This pull request uses carry forward flags. Click here to find out more.
see 93 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: all changes are related to tests.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Small, self-contained e2e test fix that realigns the spec with the tab-based Alerts page from #3583; the one nit noted inline (duplicated tab locator regex) is a minor style suggestion, not a correctness issue.

Extended reasoning...

Overview

This PR only touches two Playwright e2e test files: managed-wallet-notification-channels.spec.ts and the AlertsPage page-object helper. It updates the spec to wait for the new /alerts tab-based navigation (introduced in #3583) instead of the old /alerts/notification-channels URL, and re-opens the Notification Channels tab after save since the app now lands back on the default Alerts tab. No application/production code is modified.

Security risks

None. This is test-only code with no auth, crypto, data handling, or user input changes.

Level of scrutiny

Low. The change is confined to e2e test helpers and a single spec file, is small (size: XS), and does exactly what the PR description claims — verified the diff matches the stated behavior change (URL wait removed for the tab click, URL regex updated to /\/alerts\/?$/ after save, and an extra openNotificationChannelsTab() call added before the list-verification step). This is squarely a mechanical fix following the existing page-object pattern.

Other factors

The one issue surfaced (duplicated locator regex in openNotificationChannelsTab) is a minor readability nit with no functional impact and is already captured as an inline comment. No outstanding unaddressed reviewer comments exist on this PR.

Comment thread apps/deploy-web/tests/ui/pages/AlertsPage.ts Outdated
@baktun14
baktun14 enabled auto-merge August 13, 2026 16:31

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — the prior nit (duplicate tab locator) has been fixed in a33b860, and no new issues were found.

What was reviewed: the updated wait-for-URL/tab-selected flow in the spec and AlertsPage.openNotificationChannelsTab(), confirming the assertions now match the post-#3583 Alerts-tab redirect behavior described in the PR description.

Extended reasoning...

Overview

This PR touches only two Playwright e2e test files: the notification-channels spec and its AlertsPage page object. It updates stale URL-based waits to match the new tab-based Alerts UI introduced in #3583 (notification channels are now a local tab rather than a separate route).

Security risks

None. This is test-only code with no changes to application logic, auth, or data handling.

Level of scrutiny

Low. Test-only, mechanical alignment fix for a known-stale e2e assertion, in a non-critical path (e2e tooling, not production code). The change is well-scoped and its rationale (URL/tab behavior changed in #3583) is clearly explained and verifiable against that PR.

Other factors

The bug-hunting system's earlier nit about duplicated locator construction in openNotificationChannelsTab() was addressed by the author in a33b860, which is already reflected in the current diff. No outstanding review comments remain, and no new issues were found on this pass.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: all changes are related to tests.

@baktun14
baktun14 added this pull request to the merge queue Aug 13, 2026
Merged via the queue into main with commit a16cb84 Aug 13, 2026
58 checks passed
@baktun14
baktun14 deleted the test/notification-channel-e2e-settings-tabs branch August 13, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant