-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix more flaky playwright tests (#29007)
* Group systemic playwright flakes Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix more flaky tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix another flake Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * delint Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix more flakes Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix skip tests being wrong Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
- Loading branch information
Showing
14 changed files
with
104 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,14 @@ import { SettingLevel } from "../../../src/settings/SettingLevel"; | |
import { Layout } from "../../../src/settings/enums/Layout"; | ||
import { ElementAppPage } from "../../pages/ElementAppPage"; | ||
|
||
// Find and click "Reply" button | ||
const clickButtonReply = async (tile: Locator) => { | ||
await expect(async () => { | ||
await tile.hover(); | ||
await tile.getByRole("button", { name: "Reply", exact: true }).click(); | ||
}).toPass(); | ||
Check failure on line 21 in playwright/e2e/audio-player/audio-player.spec.ts GitHub Actions / Run Tests [Chrome] 1/6[Chrome] › audio-player/audio-player.spec.ts:250:9 › Audio player › should support creating a reply chain with multiple audio files @no-firefox @no-webkit @screenshot
Check failure on line 21 in playwright/e2e/audio-player/audio-player.spec.ts GitHub Actions / Run Tests [Chrome] 1/4[Chrome] › audio-player/audio-player.spec.ts:250:9 › Audio player › should support creating a reply chain with multiple audio files @no-firefox @no-webkit @screenshot
|
||
}; | ||
|
||
test.describe("Audio player", { tag: ["@no-firefox", "@no-webkit"] }, () => { | ||
test.use({ | ||
displayName: "Hanako", | ||
|
@@ -222,8 +230,7 @@ test.describe("Audio player", { tag: ["@no-firefox", "@no-webkit"] }, () => { | |
|
||
// Find and click "Reply" button on MessageActionBar | ||
const tile = page.locator(".mx_EventTile_last"); | ||
await tile.hover(); | ||
await tile.getByRole("button", { name: "Reply", exact: true }).click(); | ||
await clickButtonReply(tile); | ||
|
||
// Reply to the player with another audio file | ||
await uploadFile(page, "playwright/sample-files/1sec.ogg"); | ||
|
@@ -251,26 +258,20 @@ test.describe("Audio player", { tag: ["@no-firefox", "@no-webkit"] }, () => { | |
|
||
const tile = page.locator(".mx_EventTile_last"); | ||
|
||
// Find and click "Reply" button | ||
const clickButtonReply = async () => { | ||
await tile.hover(); | ||
await tile.getByRole("button", { name: "Reply", exact: true }).click(); | ||
}; | ||
|
||
await uploadFile(page, "playwright/sample-files/upload-first.ogg"); | ||
|
||
// Assert that the audio player is rendered | ||
await expect(page.locator(".mx_EventTile_last .mx_AudioPlayer_container")).toBeVisible(); | ||
|
||
await clickButtonReply(); | ||
await clickButtonReply(tile); | ||
|
||
// Reply to the player with another audio file | ||
await uploadFile(page, "playwright/sample-files/upload-second.ogg"); | ||
|
||
// Assert that the audio player is rendered | ||
await expect(page.locator(".mx_EventTile_last .mx_AudioPlayer_container")).toBeVisible(); | ||
|
||
await clickButtonReply(); | ||
await clickButtonReply(tile); | ||
|
||
// Reply to the player with yet another audio file to create a reply chain | ||
await uploadFile(page, "playwright/sample-files/upload-third.ogg"); | ||
|
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
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
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
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
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