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

Add More E2E Tests for post-menu Component #4735

Open
alionazherdetska opened this issue Feb 20, 2025 · 0 comments
Open

Add More E2E Tests for post-menu Component #4735

alionazherdetska opened this issue Feb 20, 2025 · 0 comments
Labels
📦 components Related to the @swisspost/design-system-components package 🧪 testing

Comments

@alionazherdetska
Copy link
Contributor

Description:
Enhance the end-to-end test coverage for the post-menu component by adding the following test cases:

Test Cases to Implement:

  1. Toggle Visibility Test:

    • Verify that @menu is visible after toggling.
  2. Multiple Triggers and Menus - Independent Toggling:

    • Add two triggers (toggleA and toggleB) and two menus (menuA and menuB).
    • Connect toggleA to menuA and toggleB to menuB.
    • Verify that:
      • Clicking toggleA toggles only menuA.
      • Clicking toggleB toggles only menuB.
  3. Multiple Triggers for One Menu:

    • Add two triggers (toggleA and toggleB) and two menus (menuA and menuB).
    • Connect both toggleA and toggleB to menuA, leaving menuB unconnected.
    • Verify that:
      • Clicking toggleA toggles menuA.
      • Clicking toggleB also toggles menuA.
      • menuB is not affected by either trigger.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 components Related to the @swisspost/design-system-components package 🧪 testing
Projects
Status: 👀 Triage
Development

No branches or pull requests

1 participant