From 29e6df0c3027dcce26ef538e13bfbe72d60fe381 Mon Sep 17 00:00:00 2001 From: dawn Date: Sat, 31 Oct 2026 08:35:53 +0300 Subject: [PATCH] e2e/specs: use the current test ids Signed-off-by: dawn --- e2e/specs/account.spec.ts | 2 +- e2e/specs/refusals.spec.ts | 2 +- e2e/specs/routes.spec.ts | 2 +- e2e/specs/search.spec.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/specs/account.spec.ts b/e2e/specs/account.spec.ts index d0af950f4..09e87dd84 100644 --- a/e2e/specs/account.spec.ts +++ b/e2e/specs/account.spec.ts @@ -281,7 +281,7 @@ flow("changing the handle gives the account the new handle") .actor("renmr") .step("pick a handle", pickHandle) .open(settingsPage("handle")) - .click(testid("ownDomain")) + .click(testid("ownDomainChosen")) .fill(testid("handle"), newHandle) .click(testid("submit")) .step("the pds knows the account by the new handle", (ctx) => diff --git a/e2e/specs/refusals.spec.ts b/e2e/specs/refusals.spec.ts index 935c3ca4a..9298108d1 100644 --- a/e2e/specs/refusals.spec.ts +++ b/e2e/specs/refusals.spec.ts @@ -319,7 +319,7 @@ flow("a signup with a token the server never sent is refused and makes no accoun await ctx.page.goto("/signup/verify"); }) .fill(testid("token"), "not-a-real-token") - .fill(testid("username"), (ctx) => fresh.get(ctx)!) + .fill(testid("signupUsername"), (ctx) => fresh.get(ctx)!) .fill(testid("password"), config.password) .click(testid("submit")) .sees(refusal) diff --git a/e2e/specs/routes.spec.ts b/e2e/specs/routes.spec.ts index f5dbf5886..039e8dd27 100644 --- a/e2e/specs/routes.spec.ts +++ b/e2e/specs/routes.spec.ts @@ -336,7 +336,7 @@ flow("a new organization gets its own account, and deleting it takes the account orgs.set(ctx, `org${stamp()}`.slice(0, 20)); }) .open(where("the new organization form", () => "/organizations/new")) - .fill(testid("label"), (ctx) => orgs.get(ctx)!) + .fill(testid("organizationHandle"), (ctx) => orgs.get(ctx)!) .click(testid("submit")) .step("the form lands on the org's welcome", async (ctx) => { await expect(ctx.page).toHaveURL(new RegExp(`/organizations/${orgHandle(ctx)}/welcome`), { diff --git a/e2e/specs/search.spec.ts b/e2e/specs/search.spec.ts index 9147dd6b3..33a5b9331 100644 --- a/e2e/specs/search.spec.ts +++ b/e2e/specs/search.spec.ts @@ -24,7 +24,7 @@ const reposOf = (query: string) => let firstRepo = ""; -const searchBox = testid("queryValue"); +const searchBox = testid("q"); // search matches any word, so the stamp is what tells two flow repos apart const stampOf = (ctx: Ctx) => ctx.repo.name.replace(/^e2e-/, ""); const searchedFor = (name: (ctx: Ctx) => string) => @@ -60,7 +60,7 @@ twoRepos("typing in the profile's repo search narrows the list") twoRepos("clearing the profile's repo search brings the whole list back") .open(searchedFor(stampOf)) .sees(not(exactLink(() => firstRepo))) - .click(testid("clearSearch")) + .click(testid("clear")) .at(reposOf("")) .sees(exactLink((ctx) => ctx.repo.name)) .sees(exactLink(() => firstRepo)); -- knotmirror 0.0.1