8000 chore: clean up groups page by aslilac · Pull Request #16259 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: clean up groups page #16259

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 13 commits into from
Jan 29, 2025
Prev Previous commit
Next Next commit
add redirects test
  • Loading branch information
aslilac committed Jan 28, 2025
commit eea6cf6b92509774abd697daeea4b3ebe5813b64
12 changes: 12 additions & 0 deletions site/e2e/tests/organizationGroups.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,25 @@ import {
import { expectUrl } from "../expectUrl";
import { login, randomName, requiresLicense } from "../helpers";
import { beforeCoderTest } from "../hooks";
import { defaultOrganizationName } from "../constants";

test.beforeEach(async ({ page }) => {
beforeCoderTest(page);
await login(page);
await setupApiCalls(page);
});

test.only("redirects", async ({ page }) => {
requiresLicense();

const orgName = defaultOrganizationName;
await page.goto("/groups");
await expectUrl(page).toHavePathName(`/organizations/${orgName}/groups`);

await page.goto("/deployment/groups");
await expectUrl(page).toHavePathName(`/organizations/${orgName}/groups`);
});

test("create group", async ({ page }) => {
requiresLicense();

Expand Down
0