@samitouri / QOSami-HFS / commits / 581867b1

dx: attempting faster frontend e2e tests

Massimo Melina committed May 6, 2026 at 22:21 UTC 581867b1c1b5d7b6330e5724f457704fab95a80f
1 file changed +1 -1
e2e/frontend.spec.ts
+1 -1
@@ -307,7 +307,7 @@ async function screenshot(page: Page, selectorForMask = '') {
307 const snapshotPath = testInfo.snapshotPath(snapshotName, { kind: 'screenshot' })
308 if (selectorForMask)
309 selectorForMask = ',' + selectorForMask
310 - await wait(1000) // this accounts especially for our DataTable component which takes time to set the layout
310 + await wait(200) // this accounts especially for our DataTable component which takes time to set the layout
311 const mask = [page.locator(`.maskInTests${selectorForMask}`)]
312 // write the missing baseline ourselves so Playwright does not turn the first run into a failure
313 if (!fs.existsSync(snapshotPath)) {