Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions e2e/components/ActionMenu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ test.describe('ActionMenu', () => {
await page.getByRole('button', {name: buttonName}).click()
}
}
expect(await page.screenshot({animations: 'disabled'})).toMatchSnapshot(
`ActionMenu.${story.title}.${theme}${suffix}.png`,
)
await expect(page).toHaveScreenshot(`ActionMenu.${story.title}.${theme}${suffix}.png`)
})
}
})
Expand Down
8 changes: 4 additions & 4 deletions e2e/components/UnderlineNav.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,19 +199,19 @@ test.describe('UnderlineNav', () => {
})

// Default state
expect(await page.screenshot()).toMatchSnapshot()
await expect(page).toHaveScreenshot()

await page.setViewportSize({width: viewports['primer.breakpoint.sm'], height: 768})
await page.locator('button', {hasText: 'More items'}).waitFor()

// Resize
expect(await page.screenshot()).toMatchSnapshot()
await expect(page).toHaveScreenshot()

await page.getByRole('button', {name: 'More items'}).click()
expect(await page.screenshot({animations: 'disabled'})).toMatchSnapshot()
await expect(page).toHaveScreenshot()

await page.getByRole('menuitem', {name: 'Settings (10)'}).click()
expect(await page.screenshot()).toMatchSnapshot()
await expect(page).toHaveScreenshot()
})

test('Hide icons when there is not enough space to display all list items @vrt', async ({page}) => {
Expand Down