-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some flakiness appeared in the e2e tests. It started to impact many pull requests. Time to fix them.
- Loading branch information
Showing
8 changed files
with
69 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 0 additions & 75 deletions
75
src/frontend/apps/e2e/__tests__/app-impress/doc-favorite.spec.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ test.describe('Document create member', () => { | |
const response = await responsePromise; | ||
const users = (await response.json()).results as { | ||
email: string; | ||
full_name: string; | ||
full_name?: string | null; | ||
}[]; | ||
|
||
const list = page.getByTestId('doc-share-add-member-list'); | ||
|
@@ -40,7 +40,9 @@ test.describe('Document create member', () => { | |
await expect( | ||
list.getByTestId(`doc-share-add-member-${users[0].email}`), | ||
).toBeVisible(); | ||
await expect(list.getByText(`${users[0].full_name}`)).toBeVisible(); | ||
await expect( | ||
list.getByText(`${users[0].full_name || users[0].email}`), | ||
).toBeVisible(); | ||
|
||
// Select user 2 and verify tag | ||
await inputSearch.fill('user'); | ||
|
@@ -51,7 +53,9 @@ test.describe('Document create member', () => { | |
await expect( | ||
list.getByTestId(`doc-share-add-member-${users[1].email}`), | ||
).toBeVisible(); | ||
await expect(list.getByText(`${users[1].full_name}`)).toBeVisible(); | ||
await expect( | ||
list.getByText(`${users[1].full_name || users[1].email}`), | ||
).toBeVisible(); | ||
|
||
// Select email and verify tag | ||
const email = randomName('[email protected]', browserName, 1)[0]; | ||
|
@@ -81,7 +85,9 @@ test.describe('Document create member', () => { | |
// Check user added | ||
await expect(page.getByText('Share with 3 users')).toBeVisible(); | ||
await expect( | ||
quickSearchContent.getByText(users[0].full_name).first(), | ||
quickSearchContent | ||
.getByText(users[0].full_name || users[0].email) | ||
.first(), | ||
).toBeVisible(); | ||
await expect( | ||
quickSearchContent.getByText(users[0].email).first(), | ||
|
@@ -90,7 +96,9 @@ test.describe('Document create member', () => { | |
quickSearchContent.getByText(users[1].email).first(), | ||
).toBeVisible(); | ||
await expect( | ||
quickSearchContent.getByText(users[1].full_name).first(), | ||
quickSearchContent | ||
.getByText(users[1].full_name || users[1].email) | ||
.first(), | ||
).toBeVisible(); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters