mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #2371 from PR0M3TH3AN/fix-ci-and-visual-tests-990569406279712647
Fix CI configuration and unskip visual tests
This commit is contained in:
5 files changed
+6
-6
No files matched your search
@@ -26,7 +26,7 @@ jobs:
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: 'npm'
|
||||
|
||||
- name: Add upstream remote
|
||||
|
||||
@@ -22,6 +22,8 @@ jobs:
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: '22'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Verify gh CLI availability
|
||||
|
||||
@@ -211,9 +211,7 @@ test.describe("moderation fixtures", () => {
|
||||
await expect(muteCard).toHaveAttribute("data-moderation-trusted-mute-count", "1");
|
||||
await expect(badge).toContainText("Hidden · 1 trusted mute");
|
||||
await expect(thumbnail).toHaveAttribute("data-thumbnail-state", "blurred");
|
||||
// TODO: Visibility check fails in headless environment due to layout issues (0x0 size).
|
||||
// Verifying existence via selector instead of role/visibility.
|
||||
// await expect(showAnywayButton).toBeVisible();
|
||||
await expect(showAnywayButton).toBeVisible();
|
||||
const showAnywayLocator = muteCard.locator('button[data-moderation-action="override"]');
|
||||
await expect(showAnywayLocator).toHaveCount(1);
|
||||
await expect(showAnywayLocator).toHaveAttribute("aria-label", "Show anyway");
|
||||
|
||||
@@ -10,7 +10,7 @@ declare global {
|
||||
}
|
||||
|
||||
test.describe("overlay layering tokens", () => {
|
||||
test.skip("mobile sidebar shares desktop rail behavior", async ({ page }) => {
|
||||
test("mobile sidebar shares desktop rail behavior", async ({ page }) => {
|
||||
// Increase timeout for this visual test which is prone to flakiness in CI
|
||||
test.setTimeout(120_000);
|
||||
|
||||
|
||||
Reference in new issue
Block a user