From 30782c7078d29ac30b351657302dc6952d4b9ef0 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo <guilherme@gazzo.xyz> Date: Thu, 22 Dec 2022 09:11:17 -0300 Subject: [PATCH] Chore: Fix e2e tests after sidebar --- apps/meteor/client/components/Sidebar/Sidebar.tsx | 2 +- apps/meteor/tests/e2e/page-objects/account-profile.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/meteor/client/components/Sidebar/Sidebar.tsx b/apps/meteor/client/components/Sidebar/Sidebar.tsx index 9d8fa27f8ea..b23e0386245 100644 --- a/apps/meteor/client/components/Sidebar/Sidebar.tsx +++ b/apps/meteor/client/components/Sidebar/Sidebar.tsx @@ -3,7 +3,7 @@ import type { FC } from 'react'; import React from 'react'; const Sidebar: FC = ({ children, ...props }) => ( - <Box display='flex' flexDirection='column' h='full' justifyContent='stretch' {...props}> + <Box display='flex' flexDirection='column' h='full' justifyContent='stretch' {...props} role='navigation'> {children} </Box> ); diff --git a/apps/meteor/tests/e2e/page-objects/account-profile.ts b/apps/meteor/tests/e2e/page-objects/account-profile.ts index 32545474c09..6c8935f9d2e 100644 --- a/apps/meteor/tests/e2e/page-objects/account-profile.ts +++ b/apps/meteor/tests/e2e/page-objects/account-profile.ts @@ -41,7 +41,7 @@ export class AccountProfile { } get btnClose(): Locator { - return this.page.locator('aside[role="navigation"] button >> i.rcx-icon--name-cross.rcx-icon'); + return this.page.locator('role=navigation >> role=button[name=Close]'); } get inputToken(): Locator { -- GitLab