File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
site/src/pages/WorkspacePage Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ const renderWorkspacePage = async () => {
43
43
44
44
const testButton = async ( label : string , actionMock : jest . SpyInstance ) => {
45
45
await renderWorkspacePage ( )
46
+ // open the workspace action popover so we have access to all available ctas
47
+ const trigger = await screen . findByTestId ( "workspace-actions-button" )
48
+ trigger . click ( )
46
49
// REMARK: exact here because the "Start" button and "START" label for
47
50
// workspace schedule could otherwise conflict.
48
51
const button = await screen . findByText ( label , { exact : true } )
@@ -87,6 +90,11 @@ describe("Workspace Page", () => {
87
90
. spyOn ( api , "deleteWorkspace" )
88
91
. mockResolvedValueOnce ( MockWorkspaceBuild )
89
92
await renderWorkspacePage ( )
93
+
94
+ // open the workspace action popover so we have access to all available ctas
95
+ const trigger = await screen . findByTestId ( "workspace-actions-button" )
96
+ trigger . click ( )
97
+
90
98
const button = await screen . findByText ( Language . delete )
91
99
await waitFor ( ( ) => fireEvent . click ( button ) )
92
100
const confirmDialog = await screen . findByRole ( "dialog" )
You can’t perform that action at this time.
0 commit comments