We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad93bf0 commit 9215847Copy full SHA for 9215847
playwright/e2e/home.spec.ts
@@ -137,10 +137,13 @@ test.describe("Homepage", () => {
137
await page.click('div[class="slider-slide slide-visible slide-current"]')
138
139
// wait for page load
140
- await page.waitForNavigation()
+ await page.waitForURL("**/explore/campaigns/")
141
142
- // Check if the URL includes "/explore/campaigns" and the header has the expected text
143
- expect(page.url()).toContain("/explore/campaigns")
+ // check if Explore campaigns page was loaded with some region filter enabled
+ const regionFilterChip = await page.textContent(
144
+ "[data-cy=filter-chip]"
145
+ )
146
+ expect(regionFilterChip).toContain("region: ")
147
})
148
149
0 commit comments