Fix flaky feed share link e2e and ThemePalette sweep timeout
Some checks failed
E2E Tests / e2e (push) Has been cancelled
E2E Tests / publish-docs-screenshots (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled

This commit is contained in:
Kalle
2026-11-07 12:35:16 +02:00
parent 4004ac9a69
commit 3f2dac80cc
3 changed files with 11 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ describe("ThemePalette.build", () => {
}
expect(failures).toEqual([]);
});
}, 20_000);
test("every color is inside the sRGB gamut for any input", () => {
const failures: string[] = [];
@@ -101,7 +101,7 @@ describe("ThemePalette.build", () => {
}
expect(failures).toEqual([]);
});
}, 20_000);
test("gives a yellow accent a bright light mode fill with dark text on it", () => {
const theme = built({ accentHue: 100, accentChroma: 0.3 });

View File

@@ -1,7 +1,11 @@
import type { Page } from "@playwright/test";
import { newHomePageSchema } from "~/features/settings/settings-schemas";
import { SETTINGS_PAGE } from "~/utils/urls";
import { navigate, waitForPOSTResponse } from "../../helpers/playwright";
import {
expect,
navigate,
waitForPOSTResponse,
} from "../../helpers/playwright";
import { createFormHelpers } from "../../helpers/playwright-form";
import { FeedPostPage } from "./feed-post-page";
@@ -42,7 +46,9 @@ export class FeedPage {
async openPost(text: string | RegExp) {
await this.post(text).getByRole("link", { name: "Comments" }).click();
await this.page.waitForURL(/\/feed\//);
const postPage = new FeedPostPage(this.page);
await expect(postPage.locators.commentsRegion).toBeVisible();
return new FeedPostPage(this.page);
return postPage;
}
}

View File

@@ -15,6 +15,7 @@ export class FeedPostPage {
const comments = page.getByRole("region", { name: "Comments" });
this.locators = {
post: page.getByRole("main").getByRole("article"),
commentsRegion: comments,
comments: comments.getByTestId("chat-message-row"),
noCommentsText: page.getByText("No comments yet. Say something nice!"),
composer: comments.getByPlaceholder("Press enter to send"),