Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminleonard committed Jan 24, 2024
1 parent 2922ceb commit 4d08e86
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions app/test/e2e/instance-create.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
import { images } from '@oxide/api-mocks'

import { expect, expectNotVisible, expectRowVisible, expectVisible, test } from './utils'
import { expect, expectRowVisible, expectVisible, test } from './utils'

test('can create an instance', async ({ page }) => {
await page.goto('/projects/mock-project/instances')
Expand Down Expand Up @@ -40,17 +40,6 @@ test('can create an instance', async ({ page }) => {
await page.getByRole('button', { name: 'Image' }).click()
await page.getByRole('option', { name: images[2].name }).click()

// should be hidden in accordion
await expectNotVisible(page, [
'role=radiogroup[name="Network interface"]',
'role=textbox[name="Hostname"]',
'text="User Data"',
])

// open networking and config accordions
await page.getByRole('button', { name: 'Networking' }).click()
await page.getByRole('button', { name: 'Configuration' }).click()

// should be visible in accordion
await expectVisible(page, [
'role=radiogroup[name="Network interface"]',
Expand Down

0 comments on commit 4d08e86

Please sign in to comment.