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(),
|
createWorkflowButton.click(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const recordName = page.getByTestId('top-bar-title').getByTestId('tooltip');
|
const recordName = page.getByTestId('top-bar-title').getByText('Untitled');
|
||||||
await recordName.click();
|
await recordName.click();
|
||||||
|
|
||||||
const nameInput = page.getByTestId('top-bar-title').getByRole('textbox');
|
const nameInput = page.getByTestId('top-bar-title').getByRole('textbox');
|
||||||
|
|||||||
@ -3,8 +3,8 @@ import { useRef, useState } from 'react';
|
|||||||
import { createPortal } from 'react-dom';
|
import { createPortal } from 'react-dom';
|
||||||
|
|
||||||
import { THEME_COMMON } from '@ui/theme';
|
import { THEME_COMMON } from '@ui/theme';
|
||||||
import { AppTooltip, TooltipDelay } from './AppTooltip';
|
|
||||||
import { isDefined } from 'twenty-shared/utils';
|
import { isDefined } from 'twenty-shared/utils';
|
||||||
|
import { AppTooltip, TooltipDelay } from './AppTooltip';
|
||||||
|
|
||||||
const spacing4 = THEME_COMMON.spacing(4);
|
const spacing4 = THEME_COMMON.spacing(4);
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ export const OverflowingTextWithTooltip = ({
|
|||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{isDefined(displayedMaxRows) && (
|
{isDefined(displayedMaxRows) ? (
|
||||||
<StyledOverflowingMultilineText
|
<StyledOverflowingMultilineText
|
||||||
data-testid="tooltip"
|
data-testid="tooltip"
|
||||||
cursorPointer={isTitleOverflowing}
|
cursorPointer={isTitleOverflowing}
|
||||||
@ -125,8 +125,7 @@ export const OverflowingTextWithTooltip = ({
|
|||||||
>
|
>
|
||||||
{text}
|
{text}
|
||||||
</StyledOverflowingMultilineText>
|
</StyledOverflowingMultilineText>
|
||||||
)}
|
) : (
|
||||||
{!isDefined(displayedMaxRows) && (
|
|
||||||
<StyledOverflowingText
|
<StyledOverflowingText
|
||||||
data-testid="tooltip"
|
data-testid="tooltip"
|
||||||
cursorPointer={isTitleOverflowing}
|
cursorPointer={isTitleOverflowing}
|
||||||
|
|||||||
Reference in New Issue
Block a user