10000 feat: create e2e tests for organization custom roles page by jaaydenh · Pull Request #15814 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: create e2e tests for organization custom roles page #15814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Dec 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: format
  • Loading branch information
jaaydenh committed Dec 10, 2024
commit 992c579899e3917b53ef5613f387a0df83c579a4
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ test("custom roles disabled", async ({ page }) => {
await page.goto("/organizations/coder/roles");
await expect(page).toHaveURL("/organizations/coder/roles");

await expect(page.getByText("Upgrade to a premium license to create a custom role")).toBeVisible();
await expect(page.getByRole("link", { name: "Create custom role" })).not.toBeVisible();
await expect(
page.getByText("Upgrade to a premium license to create a custom role"),
).toBeVisible();
await expect(
page.getByRole("link", { name: "Create custom role" }),
).not.toBeVisible();
});
Loading
0