Skip to content

Commit

Permalink
PLAYWRIGHT: fix flaky playwright test (#19309)
Browse files Browse the repository at this point in the history
* fix user detail flaky playwright test

* fix the glossary flaky by adding await due to timeout
  • Loading branch information
Ashish8689 authored Jan 10, 2025
1 parent 63090da commit 0e9c32c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 0e9c32c

Please sign in to comment.