side quest for screenshot diffs (#1160)

side just for screenshot diffs
This commit is contained in:
Kurt Hutten
2023-12-01 20:49:12 +11:00
committed by GitHub
parent 3eb92bb0c4
commit 9c58cde35f
5 changed files with 88 additions and 2 deletions

View File

@ -60,8 +60,13 @@ test('Basic sketch', async ({ page }) => {
// click on "Start Sketch" button
await u.clearCommandLogs()
await page.getByRole('button', { name: 'Start Sketch' }).click()
await u.waitForDefaultPlanesVisibilityChange()
await Promise.all([
u.doAndWaitForImageDiff(
() => page.getByRole('button', { name: 'Start Sketch' }).click(),
200
),
u.waitForDefaultPlanesVisibilityChange(),
])
// select a plane
await u.doAndWaitForCmd(() => page.mouse.click(700, 200), 'edit_mode_enter')