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 e2e test for default flood trigger layers #1832

Merged
merged 5 commits into from
Dec 16, 2024

Conversation

Piotrk39
Copy link
Contributor

@Piotrk39 Piotrk39 commented Dec 4, 2024

Describe your changes

Adds test for default triggered layers Floods

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have added tests wherever relevant
  • I have made sure that all automated checks pass before requesting a review

@Piotrk39 Piotrk39 marked this pull request as ready for review December 9, 2024 10:54
test(
qase(
37,
'[Trigger] Map layer: "Flood extent" and "Exposed population" should be active by default',
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the exact purpose of this test. I often get mixed up by filenames vs test descriptions here vs full test cases in Qase. Is in this case the test just about the layers being present in the legend? And with legend do you mean the lower-left thing or the lower-right thing?

Either way, I think it makes sense to test all together. So test (1) are the layers in the layer overview (lower-right), (2) are they in the legend (lower-left), and (3) are they in the map? I'm not clear on if this is happening now either in this test or in multiple tests.

@Piotrk39 Piotrk39 added enhancement New feature or request test This involves testing labels Dec 16, 2024

await map.mapComponentIsVisible();
await map.isLegendOpen({ legendOpen: true });
await map.assertLegendElementIsVisible({
Copy link
Contributor

Choose a reason for hiding this comment

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

now only legend is tested. test also layer overview and map (proxy via radio-btn being active)

@Piotrk39 Piotrk39 merged commit d25fff7 into master Dec 16, 2024
8 checks passed
@Piotrk39 Piotrk39 deleted the feat.add-e2e-test-for-default-flood-trigger-layers branch December 16, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request test This involves testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants