fix(test): flaky glossary version test (#21281)

* fix: glossary version tests

* fix test
This commit is contained in:
Pranita Fulsundar 2025-05-19 19:58:56 +05:30 committed by Pranita
parent 1e2e2e078b
commit 9b0843c13e
2 changed files with 7 additions and 9 deletions

View File

@ -224,15 +224,13 @@ test('GlossaryTerm', async ({ page }) => {
await page.waitForLoadState('networkidle');
await page
.locator('[data-testid="glossary-reviewer"] [data-testid="diff-added"]')
.scrollIntoViewIfNeeded();
const diffLocator = page.locator(
'[data-testid="glossary-reviewer"] [data-testid="diff-added"]'
);
await expect(
page.locator(
'[data-testid="glossary-reviewer"] [data-testid="diff-added"]'
)
).toBeVisible();
await diffLocator.waitFor({ state: 'attached' });
await expect(diffLocator).toBeVisible();
});
await cleanup();

View File

@ -41,7 +41,7 @@ const PermissionErrorPlaceholder = ({
width={size}
/>
<div className="text-center text-sm font-normal">
<Typography.Paragraph className="w-80" style={{ marginBottom: '0' }}>
<Typography.Paragraph className="w-68" style={{ marginBottom: '0' }}>
{t('message.no-access-placeholder')}
</Typography.Paragraph>
</div>