mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Reduce flakiness of some e2e tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user