Skip to content

Commit

Permalink
Revert "refactor(user-menu): change ID to "user-menu""
Browse files Browse the repository at this point in the history
This reverts commit 9184fa9.
  • Loading branch information
caugner committed Oct 31, 2023
1 parent b06b64c commit 0a4fa87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/ui/molecules/user-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const UserMenu = () => {

const userMenuItems = {
label: "My MDN Plus",
id: "user-menu",
id: "my-mdn-plus",
items: [
{
label: userData.email || "",
Expand Down
4 changes: 2 additions & 2 deletions testing/tests/headless.auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test.describe("Visiting pages related and requiring authentication", () => {
expect(page.url()).toBe(testURL("/en-US/docs/Web/Foo/"));
await expect(page.locator(".user-menu")).toBeVisible();

await page.click("#user-menu-button");
await page.click("#my-mdn-plus-button");
await page.click(".signout-form button[type='submit']");
await page.waitForLoadState("networkidle");

Expand All @@ -51,7 +51,7 @@ test.describe("Visiting pages related and requiring authentication", () => {
await expect(page.locator(".user-menu")).toBeVisible();

// open up user menu
await page.click("#user-menu-button");
await page.click("#my-mdn-plus-button");
// Sign out
await page.click(".signout-form button[type='submit']");
await page.waitForLoadState("networkidle");
Expand Down

0 comments on commit 0a4fa87

Please sign in to comment.