✅(e2e) fix broken e2e tests by updating selectors
selectors were updated to stabilize and fix the failing e2e tests Signed-off-by: Cyril <c.gromoff@gmail.com>
This commit is contained in:
@@ -49,6 +49,7 @@ export const Header = () => {
|
||||
$margin={{ top: 'auto' }}
|
||||
>
|
||||
<IconDocs
|
||||
data-testid="header-icon-docs"
|
||||
aria-label={t('Back to homepage')}
|
||||
width={32}
|
||||
color={colorsTokens['primary-text']}
|
||||
|
||||
@@ -62,6 +62,7 @@ export const HomeHeader = () => {
|
||||
$height="fit-content"
|
||||
>
|
||||
<IconDocs
|
||||
data-testid="header-icon-docs"
|
||||
aria-label={t('Docs Logo')}
|
||||
width={32}
|
||||
color={colorsTokens['primary-text']}
|
||||
|
||||
@@ -54,6 +54,7 @@ export const LeftPanelHeader = ({ children }: PropsWithChildren) => {
|
||||
>
|
||||
<Box $direction="row" $gap="2px">
|
||||
<Button
|
||||
data-testid="home-button"
|
||||
onClick={goToHome}
|
||||
aria-label={t('Back to homepage')}
|
||||
size="medium"
|
||||
@@ -69,6 +70,7 @@ export const LeftPanelHeader = ({ children }: PropsWithChildren) => {
|
||||
/>
|
||||
{authenticated && (
|
||||
<Button
|
||||
data-testid="search-docs-button"
|
||||
onClick={openSearchModal}
|
||||
size="medium"
|
||||
color="tertiary-text"
|
||||
|
||||
@@ -19,6 +19,7 @@ export const LeftPanelHeaderButton = () => {
|
||||
});
|
||||
return (
|
||||
<Button
|
||||
data-testid="new-doc-button"
|
||||
color="primary"
|
||||
onClick={() => createDoc()}
|
||||
icon={<Icon $variation="000" iconName="add" aria-hidden="true" />}
|
||||
|
||||
Reference in New Issue
Block a user