-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feat.add e2e test for aggregates section #1626
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @Piotrk39 !
const layerCount = await this.aggregatesLayerRow.count(); | ||
const iconLayerCount = await this.aggregatesInfoIcon.count(); | ||
// Basic Assertions | ||
expect(headerTextModified).toBe('National View 0 Predicted Flood(s)'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be different for other countries and hazards. It's good for now. We should run these tests for other countries in the next month to see what is different.
@@ -3,22 +3,73 @@ import { Locator, Page } from 'playwright'; | |||
|
|||
import DashboardPage from './DashboardPage'; | |||
|
|||
const expectedLayersNames = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good that this list is outside the logic. This list varies depending on country and hazard.
Describe your changes
Adds assertions for all elements in Aggregates section.
Checklist before requesting a review