Skip to content

test(dialog): cover dialog stories with e2e test - #5356

Merged
jeremie-lucca merged 4 commits into
masterfrom
chore/dialog-interaction-tests
Sep 17, 2026
Merged

jeremie-lucca merged 4 commits into
masterfrom
chore/dialog-interaction-tests

Conversation

@JeSuisCharlie1

Copy link
Copy Markdown
Contributor

Description

Adds Storybook interaction tests to the dialog stories :

  • canClose
  • confimation
  • routing
  • service

I added a section to the test doc to cover the remaining missing E2E tests!


@JeSuisCharlie1 JeSuisCharlie1 added this to the 22.0.3 milestone Sep 17, 2026
@JeSuisCharlie1 JeSuisCharlie1 added the 🔨 Technical Doesn't affect the output (refactor, dependencies update, cleaning, etc.) label Sep 17, 2026
Copilot AI balanced review requested due to automatic review settings September 17, 2026 08:57
@JeSuisCharlie1
JeSuisCharlie1 requested a review from a team as a code owner September 17, 2026 08:57
@JeSuisCharlie1 JeSuisCharlie1 added the 🤖 Produced by AI Some code was produced by AI. (Autocompleted code doesn't require to be labeled) label Sep 17, 2026
@c-3po c-3po Bot added the 📖 Documentation changes Requires a Prisme update label Sep 17, 2026
@github-actions

Copy link
Copy Markdown

🚀 Storybook preview deployed: https://pub-dc6d99acd6874e2aaff6219dd8a13ae2.r2.dev/PR-5356/index.html

Copilot AI 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.

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds Storybook E2E interaction coverage for dialog service, routing, confirmation, and close-guard scenarios.

Changes:

  • Adds mouse and keyboard dialog interaction tests.
  • Covers closing behavior, routing callbacks, stacking, and canClose variants.
File summaries
File Description
stories/documentation/overlays/dialog/dialog-service.stories.ts Updated as part of this pull request.
stories/documentation/overlays/dialog/dialog-routing.stories.ts Updated as part of this pull request.
stories/documentation/overlays/dialog/dialog-confirmation.stories.ts Updated as part of this pull request.
stories/documentation/overlays/dialog/dialog-canClose.stories.ts Updated as part of this pull request.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


await step('Navigating to the dialog route opens it with the data from its factory', async () => {
const dialog = await openRoutedDialog();
await expect(within(dialog).getByRole('heading', { name: 'Dialog opened by route' })).toBeVisible();
Comment on lines +228 to +231
await step('Escape is ignored, as it goes through the same stream as the backdrop click', async () => {
await userEvent.keyboard('{Escape}');
await expectStillOpen();
});
@jeremie-lucca
jeremie-lucca merged commit c78b3f2 into master Sep 17, 2026
11 of 12 checks passed
@jeremie-lucca
jeremie-lucca deleted the chore/dialog-interaction-tests branch September 17, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📖 Documentation changes Requires a Prisme update 🔨 Technical Doesn't affect the output (refactor, dependencies update, cleaning, etc.) 🤖 Produced by AI Some code was produced by AI. (Autocompleted code doesn't require to be labeled)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants