Skip to content

Commit

Permalink
add screenshot expectations to test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 23, 2024
1 parent a701832 commit 0cc48d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions browser_tests/dialog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ test.describe('Missing models warning', () => {
// Wait for the element with the .comfy-missing-models selector to be visible
const missingModelsWarning = comfyPage.page.locator('.comfy-missing-models')
await expect(missingModelsWarning).toBeVisible()
await expect(comfyPage.canvas).toHaveScreenshot('missing_models_dialog_initial.png')

// Click the download button
const downloadButton = comfyPage.page.getByLabel('Download')
Expand All @@ -70,5 +71,6 @@ test.describe('Missing models warning', () => {
// Wait for the element with the .download-complete selector to be visible
const downloadComplete = comfyPage.page.locator('.download-complete')
await expect(downloadComplete).toBeVisible()
await expect(comfyPage.canvas).toHaveScreenshot('missing_models_dialog_downloaded.png')
})
})

0 comments on commit 0cc48d3

Please sign in to comment.