message: test(e2e): update underline nav test to wait for visibility
diff: @@ -333,12 +333,10 @@ test.describe('UnderlineNav', () => {
  colorScheme: theme,
  },
  })
  -
  await page.setViewportSize({width: viewports['primer.breakpoint.sm'], height: 768})
  - await page.locator('button', {hasText: 'More Repository Items'}).waitFor()
  + await page.locator('button', {hasText: 'More Repository Items'}).waitFor()
  await page.getByRole('button', {name: 'More Repository Items'}).click()
  -
  await page.getByRole('link', {name: 'Settings (10)'}).click()
  // State after selecting the second last item
  @@ -349,6 +347,9 @@ test.describe('UnderlineNav', () => {
  width: 1100,
  height: 480,
  })
  + await page.locator('button', {hasText: 'More Repository Items'}).waitFor({
  + state: 'hidden',
  + })
  // Current state
  expect(await page.screenshot()).toMatchSnapshot()
  @@ -358,6 +359,7 @@ test.describe('UnderlineNav', () => {
  width: 800,
  height: 480,
  })
  + await page.locator('button', {hasText: 'More Repository Items'}).waitFor()
  // Current state
  expect(await page.screenshot()).toMatchSnapshot()
  @@ -367,7 +369,6 @@ test.describe('UnderlineNav', () => {
  width: 600,
  height: 480,
  })
  -
  // Current state
  expect(await page.screenshot()).toMatchSnapshot()
  })
  