mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-05 16:02:03 +00:00
test(e2e): stop reloading the DNS page between its two cards
This commit is contained in:
1 parent
010d7e4b07
commit
d34c681abf
1 file changed
+4
-1
+4
-1
@@ -367,8 +367,11 @@ const filledCards: Array<[string, string, string, (card: import('@playwright/tes
|
||||
for (const width of [1440, 390]) {
|
||||
test(`cards fill their width and height at ${width}px`, async ({page}) => {
|
||||
await page.setViewportSize({width, height: 1000});
|
||||
let shown = '';
|
||||
for (const [route, name, content, prepare] of filledCards) {
|
||||
await page.goto(`/#/${route}`);
|
||||
// Going to the address the page already shows reloads it, which cancels the chunks still loading and logs them.
|
||||
if (route !== shown) await page.goto(`/#/${route}`);
|
||||
shown = route;
|
||||
const card = page.getByRole('region', {name, exact: true});
|
||||
await card.scrollIntoViewIfNeeded();
|
||||
await prepare(card);
|
||||
|
||||
Reference in new issue
Block a user