This commit is contained in:
@@ -87,5 +87,18 @@ test.describe("Onlineboard time-range filter (TIRREDESIGN-11)", () => {
|
||||
|
||||
// URL must have grown a time suffix.
|
||||
await expect(page).toHaveURL(/\/onlineboard\/route\/MOW-LED-\d{8}-\d{8}/);
|
||||
|
||||
const firstFilteredUrl = page.url();
|
||||
|
||||
await slider.click({
|
||||
position: { x: sliderBox.width * 0.75, y: sliderBox.height / 2 },
|
||||
});
|
||||
await expect(page.locator('[data-testid="search-submit"]')).toBeEnabled();
|
||||
await page.locator('[data-testid="search-submit"]').click();
|
||||
await page.waitForURL(
|
||||
(url) =>
|
||||
url.href !== firstFilteredUrl &&
|
||||
/\/onlineboard\/route\/MOW-LED-\d{8}-\d{8}$/.test(url.pathname),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user