@@ -107,7 +107,7 @@ describe("WorkspacesPage", () => {
107
107
}
108
108
109
109
await user . click ( screen . getByRole ( "button" , { name : / b u l k a c t i o n s / i } ) ) ;
110
- const updateButton = await screen . findByText ( / u p d a t e / i ) ;
110
+ const updateButton = await screen . findByTestId ( "bulk-action- update" ) ;
111
111
await user . click ( updateButton ) ;
112
112
113
113
// One click: no running workspaces warning, no dormant workspaces warning.
@@ -146,7 +146,7 @@ describe("WorkspacesPage", () => {
146
146
}
147
147
148
148
await user . click ( screen . getByRole ( "button" , { name : / b u l k a c t i o n s / i } ) ) ;
149
- const updateButton = await screen . findByText ( / u p d a t e / i ) ;
149
+ const updateButton = await screen . findByTestId ( "bulk-action- update" ) ;
150
150
await user . click ( updateButton ) ;
151
151
152
152
// Two clicks: 1 running workspace, no dormant workspaces warning.
@@ -184,7 +184,7 @@ describe("WorkspacesPage", () => {
184
184
}
185
185
186
186
await user . click ( screen . getByRole ( "button" , { name : / b u l k a c t i o n s / i } ) ) ;
187
- const updateButton = await screen . findByText ( / u p d a t e / i ) ;
187
+ const updateButton = await screen . findByTestId ( "bulk-action- update" ) ;
188
188
await user . click ( updateButton ) ;
189
189
190
190
// Two clicks: no running workspaces warning, 1 dormant workspace.
@@ -224,7 +224,7 @@ describe("WorkspacesPage", () => {
224
224
}
225
225
226
226
await user . click ( screen . getByRole ( "button" , { name : / b u l k a c t i o n s / i } ) ) ;
227
- const updateButton = await screen . findByText ( / u p d a t e / i ) ;
227
+ const updateButton = await screen . findByTestId ( "bulk-action- update" ) ;
228
228
await user . click ( updateButton ) ;
229
229
230
230
// Three clicks: 1 running workspace, 1 dormant workspace.
0 commit comments