Skip to content

Commit

Permalink
Fix a few tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charliepark committed Oct 16, 2024
1 parent 6f0cfa6 commit eacc792
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/e2e/disks.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ test('List disks and snapshot', async ({ page }) => {
await clickRowAction(page, 'disk-1 db1', 'Snapshot')
await expect(page.getByText("Creating snapshot of disk 'disk-1'").nth(0)).toBeVisible()
// Next line is a little awkward, but we don't actually know what the snapshot name will be
await expect(page.getByText('Snapshot disk-1-')).toBeVisible()
await expect(
page.getByText(/Snapshot disk-1-.*created/, { exact: false }).nth(0)
).toBeVisible()
})

test('Disk snapshot error', async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/images.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ test('can delete an image from a silo', async ({ page }) => {
await expect(spinner).toBeVisible()

// Check deletion was successful
await expect(page.getByText('ubuntu-20-04 deleted', { exact: true })).toBeVisible()
await expect(page.getByText('Image ubuntu-20-04 deleted', { exact: true })).toBeVisible()
await expect(cell).toBeHidden()
await expect(spinner).toBeHidden()
})
Expand Down

0 comments on commit eacc792

Please sign in to comment.