Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(sbb-menu): add visual tests #2852

Merged
merged 12 commits into from
Jul 2, 2024
Merged

Conversation

DavideMininni-Fincons
Copy link
Contributor

NOTE FOR REVIEWERS

there's an issue in the menu.visual.spec.ts:

  • the viewportHeight: 400 in the describeEach seems to be required to correctly display the component in zero-breakpoint;
  • the explicit await setViewport({ width: SbbBreakpointMediumMin, height: 400 }); is needed to correctly display the menu in medium-breakpoint, otherwise its position seems to be at top-left of the page.

Copy link
Contributor

@TomMenga TomMenga left a comment

Choose a reason for hiding this comment

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

GG
Some minor fixes and topics

src/elements/menu/menu-button/menu-button.visual.spec.ts Outdated Show resolved Hide resolved
src/elements/menu/menu-link/menu-link.visual.spec.ts Outdated Show resolved Hide resolved
src/elements/menu/menu/menu.visual.spec.ts Outdated Show resolved Hide resolved
src/elements/menu/menu/menu.visual.spec.ts Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to pr2852 June 28, 2024 14:45 Inactive
@github-actions github-actions bot temporarily deployed to pr2852 June 28, 2024 16:23 Inactive
@github-actions github-actions bot temporarily deployed to pr2852 July 1, 2024 11:13 Inactive
Copy link
Contributor

@jeripeierSBB jeripeierSBB left a comment

Choose a reason for hiding this comment

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

Should we also discuss the viewport stuff?

src/elements/menu/menu-button/menu-button.visual.spec.ts Outdated Show resolved Hide resolved
src/elements/menu/menu-link/menu-link.visual.spec.ts Outdated Show resolved Hide resolved
# Conflicts:
#	src/elements/core/testing/private/fixture.ts
Copy link
Contributor

@jeripeierSBB jeripeierSBB left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the pr: lead review approved Pull request has been approved by a lead review label Jul 2, 2024
Copy link
Contributor

@TomMenga TomMenga left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@github-actions github-actions bot added pr: peer review approved Pull request has been approved by a peer review and removed pr: peer review required A peer review is required for this pull request labels Jul 2, 2024
@DavideMininni-Fincons DavideMininni-Fincons merged commit f172738 into main Jul 2, 2024
28 of 30 checks passed
@DavideMininni-Fincons DavideMininni-Fincons deleted the test/migration-menu branch July 2, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diff-available pr: lead review approved Pull request has been approved by a lead review pr: peer review approved Pull request has been approved by a peer review pr: visual review required preview-available
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants