File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export const snapshots: Json<Snapshot>[] = [
104
104
function generateSnapshot ( index : number ) : Json < Snapshot > {
105
105
return {
106
106
id : uuid ( ) ,
107
- name : `disk-1-snapshot-${ index + 7 } ` ,
107
+ name : `disk-1-snapshot-${ index + 8 } ` ,
108
108
description : '' ,
109
109
project_id : project . id ,
110
110
time_created : new Date ( ) . toISOString ( ) ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ test('pagination', async ({ page }) => {
52
52
await nextButton . click ( )
53
53
await expectCell ( page , 'disk-1-snapshot-76' )
54
54
await expectCell ( page , 'disk-1-snapshot-86' )
55
- await expect ( rows ) . toHaveCount ( 11 )
55
+ await expect ( rows ) . toHaveCount ( 12 )
56
56
await expect ( nextButton ) . toBeDisabled ( ) // no more pages
57
57
58
58
await scrollTo ( page , 250 )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ test('Click through snapshots', async ({ page }) => {
28
28
test ( 'Confirm delete snapshot' , async ( { page } ) => {
29
29
await page . goto ( '/projects/mock-project/snapshots' )
30
30
31
- const row = page . getByRole ( 'row' , { name : 'disk-1-snapshot-7 ' } )
31
+ const row = page . getByRole ( 'row' , { name : 'disk-1-snapshot-10 ' } )
32
32
33
33
// scroll a little so the dropdown menu isn't behind the pagination bar
34
34
await page . getByRole ( 'table' ) . click ( ) // focus the content pane
@@ -53,7 +53,8 @@ test('Confirm delete snapshot', async ({ page }) => {
53
53
await page . getByRole ( 'button' , { name : 'Confirm' } ) . click ( )
54
54
55
55
// modal closes, row is gone
56
- await expectNotVisible ( page , [ modal , row ] )
56
+ await expect ( modal ) . toBeHidden ( )
57
+ await expect ( row ) . toBeHidden ( )
57
58
} )
58
59
59
60
test ( 'Error on delete snapshot' , async ( { page } ) => {
You can’t perform that action at this time.
0 commit comments