Fix release announcement test flake (#30250)

* chore: add `hideJumpToBottomButton` option to playwright screenshot

* test: hide jump to bottom button in release announcement test
This commit is contained in:
Florian Duros
2025-07-03 10:51:35 +00:00
committed by GitHub
parent 90f4d34fbb
commit 66d7c6a100
2 changed files with 13 additions and 1 deletions
+4 -1
View File
@@ -42,7 +42,10 @@ export class Helpers {
*/
async assertReleaseAnnouncementIsVisible(name: string) {
await expect(this.getReleaseAnnouncement(name)).toBeVisible();
await expect(this.page).toMatchScreenshot(`release-announcement-${name}.png`, { showTooltips: true });
await expect(this.page).toMatchScreenshot(`release-announcement-${name}.png`, {
showTooltips: true,
hideJumpToBottomButton: true,
});
}
/**