Reduce flakiness of some e2e tests

This commit is contained in:
Sebastian Martinez
2024-06-20 16:43:44 +02:00
committed by Rūdolfs Ošiņš
parent b09a705f58
commit a4e0d21bad
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -8,7 +8,7 @@
import ErrorModal from "@app/modals/ErrorModal.svelte";
import ExternalLink from "@app/components/ExternalLink.svelte";
import IconSmall from "@app/components/IconSmall.svelte";
import Popover from "@app/components/Popover.svelte";
import Popover, { closeFocused } from "@app/components/Popover.svelte";
export let projectId: string;
export let seedCount: number;
@@ -100,6 +100,7 @@
on:click={async () => {
if ($experimental && !seeding && canEditSeeding) {
await editSeeding();
closeFocused();
} else {
toggle();
}
@@ -121,6 +122,7 @@
<div
slot="popover"
let:toggle
style:width={$experimental ? (seeding ? "19.5rem" : "30.5rem") : "auto"}>
{#if $experimental && canEditSeeding && seeding}
<div class="seed-label txt-bold">Stop seeding</div>
@@ -134,6 +136,7 @@
disabled={editSeedingInProgress}
on:click={async () => {
await editSeeding();
toggle();
}}>
<IconSmall name="seedling" />
Stop seeding
+2
View File
@@ -17,6 +17,7 @@ test("peer and branch switching", async ({ page }) => {
await page
.getByRole("link", { name: `Commits ${aliceMainCommitCount}` })
.click();
await expect(page.getByText("Thursday, December 15,")).toBeVisible();
// Alice's peer.
{
@@ -114,6 +115,7 @@ test("commit messages with double colon not converted into single colon", async
exact: true,
})
.click();
await page.waitForLoadState("networkidle");
await expect(page.getByText(commitMessage, { exact: true })).toBeVisible();
});