@@ -29,7 +29,7 @@ test('can stop and delete a running instance', async ({ page }) => {
29
29
const table = page . getByRole ( 'table' )
30
30
await expectRowVisible ( table , {
31
31
name : 'db1' ,
32
- status : expect . stringContaining ( 'running' ) ,
32
+ state : expect . stringContaining ( 'running' ) ,
33
33
} )
34
34
const row = page . getByRole ( 'row' , { name : 'db1' , exact : false } )
35
35
@@ -42,11 +42,11 @@ test('can stop and delete a running instance', async ({ page }) => {
42
42
// polling makes it go stopping and then stopped
43
43
await expectRowVisible ( table , {
44
44
name : 'db1' ,
45
- status : expect . stringContaining ( 'stopping' ) ,
45
+ state : expect . stringContaining ( 'stopping' ) ,
46
46
} )
47
47
await expectRowVisible ( table , {
48
48
name : 'db1' ,
49
- status : expect . stringContaining ( 'stopped' ) ,
49
+ state : expect . stringContaining ( 'stopped' ) ,
50
50
} )
51
51
52
52
// now delete
@@ -62,29 +62,29 @@ test('can stop a starting instance, then start it again', async ({ page }) => {
62
62
const table = page . getByRole ( 'table' )
63
63
await expectRowVisible ( table , {
64
64
name : 'not-there-yet' ,
65
- status : expect . stringContaining ( 'starting' ) ,
65
+ state : expect . stringContaining ( 'starting' ) ,
66
66
} )
67
67
68
68
await clickRowAction ( page , 'not-there-yet' , 'Stop' )
69
69
await page . getByRole ( 'button' , { name : 'Confirm' } ) . click ( )
70
70
71
71
await expectRowVisible ( table , {
72
72
name : 'not-there-yet' ,
73
- status : expect . stringContaining ( 'stopping' ) ,
73
+ state : expect . stringContaining ( 'stopping' ) ,
74
74
} )
75
75
await expectRowVisible ( table , {
76
76
name : 'not-there-yet' ,
77
- status : expect . stringContaining ( 'stopped' ) ,
77
+ state : expect . stringContaining ( 'stopped' ) ,
78
78
} )
79
79
80
80
await clickRowAction ( page , 'not-there-yet' , 'Start' )
81
81
await expectRowVisible ( table , {
82
82
name : 'not-there-yet' ,
83
- status : expect . stringContaining ( 'starting' ) ,
83
+ state : expect . stringContaining ( 'starting' ) ,
84
84
} )
85
85
await expectRowVisible ( table , {
86
86
name : 'not-there-yet' ,
87
- status : expect . stringContaining ( 'running' ) ,
87
+ state : expect . stringContaining ( 'running' ) ,
88
88
} )
89
89
} )
90
90
@@ -108,18 +108,18 @@ test('instance table', async ({ page }) => {
108
108
name : 'db1' ,
109
109
CPU : '2 vCPU' ,
110
110
Memory : '4 GiB' ,
111
- status : expect . stringMatching ( / ^ r u n n i n g \d + s $ / ) ,
111
+ state : expect . stringMatching ( / ^ r u n n i n g \d + s $ / ) ,
112
112
} )
113
113
await expectRowVisible ( table , {
114
114
name : 'you-fail' ,
115
115
CPU : '4 vCPU' ,
116
116
Memory : '6 GiB' ,
117
- status : expect . stringMatching ( / ^ f a i l e d \d + s $ / ) ,
117
+ state : expect . stringMatching ( / ^ f a i l e d \d + s $ / ) ,
118
118
} )
119
119
await expectRowVisible ( table , {
120
120
name : 'not-there-yet' ,
121
121
CPU : '2 vCPU' ,
122
122
Memory : '8 GiB' ,
123
- status : expect . stringMatching ( / ^ s t a r t i n g \d + s $ / ) ,
123
+ state : expect . stringMatching ( / ^ s t a r t i n g \d + s $ / ) ,
124
124
} )
125
125
} )
0 commit comments