Skip to content

Commit 45bdb82

Browse files
bostonaholicmboston Implementerclaude
committed
test(channels): find the channel heading by its members button in the Canvas journey
main now labels the channel heading as a Manage members button, not a tab. Co-authored-by: mboston Implementer <932d3b6ebea6cc83e091551ae46d1c7e7f8f7d0fa8e9cef5e6facc8544af413b@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Matthew Boston <[email protected]>
1 parent 08ea144 commit 45bdb82

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎tests/browser/channel-header-menu.spec.mjs‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ test.describe("dialog origin retirement", () => {
609609
// Choosing channels from the sidebar keeps the tab the same way.
610610
await page.locator('button[data-channel-id="beta"]').click();
611611
await expect(
612-
page.getByRole("tab", { name: "Beta", exact: true }),
612+
page.getByRole("button", { name: "Manage members of Beta", exact: true }),
613613
).toBeVisible();
614614
await expect(canvas).toHaveCount(0);
615615
await page.locator(`button[data-channel-id="${channelId}"]`).click();
@@ -623,11 +623,14 @@ test.describe("dialog origin retirement", () => {
623623
// Close is the end: returning to the channel does not reopen it.
624624
await page.locator('button[data-channel-id="beta"]').click();
625625
await expect(
626-
page.getByRole("tab", { name: "Beta", exact: true }),
626+
page.getByRole("button", { name: "Manage members of Beta", exact: true }),
627627
).toBeVisible();
628628
await page.locator(`button[data-channel-id="${channelId}"]`).click();
629629
await expect(
630-
page.getByRole("tab", { name: channelName, exact: true }),
630+
page.getByRole("button", {
631+
name: `Manage members of ${channelName}`,
632+
exact: true,
633+
}),
631634
).toBeVisible();
632635
await expect(canvas).toHaveCount(0);
633636
expect(app.report.lifecyclePublications ?? []).toHaveLength(0);

0 commit comments

Comments
 (0)