Fix e2e tests (#11577)
This commit is contained in:
committed by
GitHub
parent
8b10059e1b
commit
6c2d64dcb2
@ -28,7 +28,7 @@ test('Create workflow', async ({ page }) => {
|
||||
createWorkflowButton.click(),
|
||||
]);
|
||||
|
||||
const recordName = page.getByTestId('top-bar-title').getByTestId('tooltip');
|
||||
const recordName = page.getByTestId('top-bar-title').getByText('Untitled');
|
||||
await recordName.click();
|
||||
|
||||
const nameInput = page.getByTestId('top-bar-title').getByRole('textbox');
|
||||
|
||||
@ -3,8 +3,8 @@ import { useRef, useState } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
|
||||
import { THEME_COMMON } from '@ui/theme';
|
||||
import { AppTooltip, TooltipDelay } from './AppTooltip';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { AppTooltip, TooltipDelay } from './AppTooltip';
|
||||
|
||||
const spacing4 = THEME_COMMON.spacing(4);
|
||||
|
||||
@ -112,7 +112,7 @@ export const OverflowingTextWithTooltip = ({
|
||||
};
|
||||
return (
|
||||
<>
|
||||
{isDefined(displayedMaxRows) && (
|
||||
{isDefined(displayedMaxRows) ? (
|
||||
<StyledOverflowingMultilineText
|
||||
data-testid="tooltip"
|
||||
cursorPointer={isTitleOverflowing}
|
||||
@ -125,8 +125,7 @@ export const OverflowingTextWithTooltip = ({
|
||||
>
|
||||
{text}
|
||||
</StyledOverflowingMultilineText>
|
||||
)}
|
||||
{!isDefined(displayedMaxRows) && (
|
||||
) : (
|
||||
<StyledOverflowingText
|
||||
data-testid="tooltip"
|
||||
cursorPointer={isTitleOverflowing}
|
||||
|
||||
Reference in New Issue
Block a user