Skip to content

Commit 9aa85a0

Browse files
Copilotarii
andcommitted
refactor: remove prepareForVisualRegression wrapper in favor of waitForVRTReady
Co-authored-by: arii <342438+arii@users.noreply.github.com>
1 parent 01cf3ee commit 9aa85a0

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

tests/playwright/lib/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ export {
151151
// Screenshot helpers
152152
takeScreenshot,
153153
takeDashboardScreenshot,
154-
prepareForVisualRegression,
155154
assertFixedDimensions,
156155
waitForVRTReady,
157156
} from './visual'

tests/playwright/lib/visual.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,3 @@ export async function takeDashboardScreenshot(
217217
})
218218
}
219219

220-
/**
221-
* Prepares a page for visual regression testing by waiting for fonts to load.
222-
* This helps prevent flaky tests caused by font rendering shifts.
223-
*
224-
* @param page - The Playwright Page object to prepare.
225-
*/
226-
export async function prepareForVisualRegression(page: Page): Promise<void> {
227-
await waitForVRTReady(page)
228-
}

0 commit comments

Comments
 (0)