Skip to content

Commit

Permalink
Add screenshots to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
iterion committed Sep 3, 2024
1 parent cf480bb commit 05c5a78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e/playwright/testing-settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,17 @@ test.describe('Testing settings', () => {
await expect(logoLink).toHaveCSS('--primary-hue', userThemeColor)
await settingsCloseButton.click()
})
let screenshot = await page.screenshot()
await testInfo.attach('screenshot1', { body: screenshot, contentType: 'image/png' })

await test.step('Set project theme color', async () => {
// Open the project
await projectLink.click()
screenshot = await page.screenshot()
await testInfo.attach('screenshot2', { body: screenshot, contentType: 'image/png' })
await settingsOpenButton.click()
screenshot = await page.screenshot()
await testInfo.attach('screenshot3', { body: screenshot, contentType: 'image/png' })
// The project tab should be selected by default within a project
await expect(projectSettingsTab).toBeChecked()
await themeColorSetting.fill(projectThemeColor)
Expand Down

0 comments on commit 05c5a78

Please sign in to comment.