mirror of
https://github.com/suitenumerique/docs
synced 2026-04-21 13:37:20 +00:00
✅(e2e) fix e2e test for other browsers
In this test the comment is made using the "current" browser which can be Chromium but can also be Firefox or Webkit. This is why the test failed with other browsers. Signed-off-by: Anto59290 <antonin59290@hotmail.com>
This commit is contained in:
parent
0d967aba48
commit
f9f32db854
4 changed files with 9 additions and 3 deletions
|
|
@ -6,6 +6,10 @@ and this project adheres to
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- ✅(e2e) fix e2e test for other browsers #1799
|
||||
|
||||
## [4.4.0] - 2026-01-13
|
||||
|
||||
### Added
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ test.describe('Doc Comments', () => {
|
|||
await page.getByRole('button', { name: '👍' }).click();
|
||||
|
||||
await expect(
|
||||
thread.getByRole('img', { name: 'E2E Chromium' }).first(),
|
||||
thread.getByRole('img', { name: `E2E ${browserName}` }).first(),
|
||||
).toBeVisible();
|
||||
await expect(thread.getByText('This is a comment').first()).toBeVisible();
|
||||
await expect(thread.getByText(`E2E ${browserName}`).first()).toBeVisible();
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ test.describe('Inherited share accesses', () => {
|
|||
`doc-share-member-row-user.test@${browserName}.test`,
|
||||
);
|
||||
await expect(user).toBeVisible();
|
||||
await expect(user.getByText('E2E Chromium')).toBeVisible();
|
||||
await expect(user.getByText(`E2E ${browserName}`)).toBeVisible();
|
||||
await expect(user.getByText('Owner')).toBeVisible();
|
||||
|
||||
await page
|
||||
|
|
|
|||
|
|
@ -224,7 +224,9 @@ export const updateDocTitle = async (page: Page, title: string) => {
|
|||
await expect(input).toHaveText('');
|
||||
await expect(input).toBeVisible();
|
||||
await input.click();
|
||||
await input.fill(title);
|
||||
await input.fill(title, {
|
||||
force: true,
|
||||
});
|
||||
await input.click();
|
||||
await input.blur();
|
||||
await verifyDocName(page, title);
|
||||
|
|
|
|||
Loading…
Reference in a new issue