Skip to content

Commit 57909e0

Browse files
authored
site(e2e): wait for empty workspaces (#9987)
1 parent 4b0565c commit 57909e0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

site/e2e/global.setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ test("create first user", async ({ page }) => {
1414

1515
await expect(page).toHaveURL(/\/workspaces.*/);
1616
await page.context().storageState({ path: STORAGE_STATE });
17+
18+
await page.getByTestId("button-select-template").isVisible();
1719
});

site/src/pages/WorkspacesPage/WorkspacesTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
112112
to="/templates"
113113
startIcon={<AddOutlined />}
114114
variant="contained"
115+
data-testid="button-select-template"
115116
>
116117
Select a Template
117118
</Button>

0 commit comments

Comments
 (0)