mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-11-12 22:29:53 -06:00
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
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:
@@ -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 });
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user