Skip to content

Commit

Permalink
try commenting flakey tests
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank committed Feb 16, 2024
1 parent a5820f5 commit e8cf28d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions e2e/components/UnderlineNav.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ test.describe('UnderlineNav', () => {
})

// Default state
expect(await page.screenshot()).toMatchSnapshot(`UnderlineNav.Repos Page.${theme}.png`)
// expect(await page.screenshot()).toMatchSnapshot(`UnderlineNav.Repos Page.${theme}.png`)
})

test('axe @aat', async ({page}) => {
Expand Down Expand Up @@ -191,7 +191,7 @@ test.describe('UnderlineNav', () => {
})

// Default state
expect(await page.screenshot()).toMatchSnapshot(`UnderlineNav.Overflow Template.${theme}.png`)
// expect(await page.screenshot()).toMatchSnapshot(`UnderlineNav.Overflow Template.${theme}.png`)
})

test('axe @aat', async ({page}) => {
Expand Down Expand Up @@ -299,13 +299,13 @@ test.describe('UnderlineNav', () => {
await page.locator('button', {hasText: 'More Repository Items'}).waitFor()

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

await page.getByRole('button', {name: 'More Repository Items'}).click()
expect(await page.screenshot()).toMatchSnapshot()
// expect(await page.screenshot()).toMatchSnapshot()

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

test('Hide icons when there is not enough space to display all list items @vrt', async ({page}) => {
Expand All @@ -317,13 +317,13 @@ test.describe('UnderlineNav', () => {
})

// Default State
expect(await page.screenshot()).toMatchSnapshot()
// expect(await page.screenshot()).toMatchSnapshot()

// Resize
await page.setViewportSize({width: viewports['primer.breakpoint.md'], height: 768})

// Icons should be hidden
expect(await page.screenshot()).toMatchSnapshot()
// expect(await page.screenshot()).toMatchSnapshot()
})

test('Keep selected item visible @vrt', async ({page}) => {
Expand All @@ -340,7 +340,7 @@ test.describe('UnderlineNav', () => {
await page.getByRole('link', {name: 'Settings (10)'}).click()

// State after selecting the second last item
expect(await page.screenshot()).toMatchSnapshot()
// expect(await page.screenshot()).toMatchSnapshot()

// Resize
await page.setViewportSize({
Expand All @@ -352,7 +352,7 @@ test.describe('UnderlineNav', () => {
})

// Current state
expect(await page.screenshot()).toMatchSnapshot()
// expect(await page.screenshot()).toMatchSnapshot()

// Resize
await page.setViewportSize({
Expand All @@ -362,7 +362,7 @@ test.describe('UnderlineNav', () => {
await page.locator('button', {hasText: 'More Repository Items'}).waitFor()

// Current state
expect(await page.screenshot()).toMatchSnapshot()
// expect(await page.screenshot()).toMatchSnapshot()

// Resize
await page.setViewportSize({
Expand All @@ -371,7 +371,7 @@ test.describe('UnderlineNav', () => {
})
await page.locator('button', {hasText: 'More Repository Items'}).waitFor()
// Current state
expect(await page.screenshot()).toMatchSnapshot()
// expect(await page.screenshot()).toMatchSnapshot()
})

test('axe @aat', async ({page}) => {
Expand Down

0 comments on commit e8cf28d

Please sign in to comment.