Skip to content

Commit 1b478af

Browse files
committed
another one
1 parent 91d5f73 commit 1b478af

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

site/e2e/playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export default defineConfig({
7070
],
7171
reporter: [["./reporter.ts"]],
7272
use: {
73+
actionTimeout: 5000, // 5 seconds
7374
baseURL: `http://localhost:${coderPort}`,
7475
video: "retain-on-failure",
7576
...(wsEndpoint

site/e2e/tests/auditLogs.spec.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,24 @@ test("inspecting and filtering audit logs", async ({ page }) => {
4444

4545
// Filter by resource type
4646
await page.getByText("All resource types").click();
47-
await page.getByRole("menu").getByText("Workspace Build").click();
47+
const workspaceBuildsOption = page.getByText("Workspace Build");
48+
await workspaceBuildsOption.scrollIntoViewIfNeeded({ timeout: 5000 });
49+
await workspaceBuildsOption.click();
4850
// Our workspace build should be visible
4951
await expect(page.getByText(startedWorkspaceMessage)).toBeVisible();
5052
// Logins should no longer be visible
5153
await expect(page.getByText(loginMessage)).not.toBeVisible();
5254

5355
// Clear filters, everything should be visible again
54-
await page.getByLabel("Clear filter").click();
56+
await page.getByLabel("Clear search").click();
5557
await expect(page.getByText(startedWorkspaceMessage)).toBeVisible();
5658
await expect(page.getByText(loginMessage)).toBeVisible();
5759

5860
// Filter by action type
5961
await page.getByText("All actions").click();
60-
await page.getByRole("menu").getByText("Login").click();
62+
const loginOption = page.getByText("Login");
63+
await loginOption.scrollIntoViewIfNeeded({ timeout: 5000 });
64+
await loginOption.click();
6165
// Logins should be visible
6266
await expect(page.getByText(loginMessage)).toBeVisible();
6367
// Our workspace build should no longer be visible

site/src/components/SearchField/SearchField.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ export const ClearValue: Story = {
4040
},
4141
play: async ({ canvasElement }) => {
4242
const canvas = within(canvasElement);
43-
await userEvent.click(canvas.getByRole("button", { name: "Clear field" }));
43+
await userEvent.click(canvas.getByRole("button", { name: "Clear search" }));
4444
},
4545
};

site/src/components/SearchField/SearchField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ export const SearchField: FC<SearchFieldProps> = ({
4040
),
4141
endAdornment: value !== "" && (
4242
<InputAdornment position="end">
43-
<Tooltip title="Clear field">
43+
<Tooltip title="Clear search">
4444
<IconButton
4545
size="small"
4646
onClick={() => {
4747
onChange("");
4848
}}
4949
>
5050
<CloseIcon css={{ fontSize: 14 }} />
51-
<span css={{ ...visuallyHidden }}>Clear field</span>
51+
<span css={{ ...visuallyHidden }}>Clear search</span>
5252
</IconButton>
5353
</Tooltip>
5454
</InputAdornment>

0 commit comments

Comments
 (0)