PLAYWRIGHT: fix flaky playwright test (#19309)

* fix user detail flaky playwright test

* fix the glossary flaky by adding await due to timeout
This commit is contained in:
Ashish Gupta 2025-01-10 17:23:23 +05:30 committed by GitHub
parent 63090da961
commit 0e9c32cdb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -806,6 +806,8 @@ test.describe('Glossary tests', () => {
test('Assign Glossary Term to entity and check assets', async ({
browser,
}) => {
test.slow(true);
const { page, afterAction, apiContext } = await performAdminLogin(browser);
const table = new TableClass();
const glossary1 = new Glossary();

View File

@ -163,7 +163,9 @@ test.describe('User with different Roles', () => {
state: 'visible',
});
await userPage.locator(descriptionBox).clear();
await userPage.click(descriptionBox);
await userPage.keyboard.press('ControlOrMeta+A');
await userPage.keyboard.press('Backspace');
await expect(userPage.locator(descriptionBox)).not.toContainText(
'Name of the User'