The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(ci): catch this.skip() calls in browser test skip guard
Steven Enamakela52f639e996b
diff --git a/app/test/playwright/specs/chat-scroll-stick.spec.ts b/app/test/playwright/specs/chat-scroll-stick.spec.tsindex 216d226691..a4ff99e23f 100644--- a/app/test/playwright/specs/chat-scroll-stick.spec.ts+++ b/app/test/playwright/specs/chat-scroll-stick.spec.ts@@ -225,7 +225,7 @@ test.describe('Chat transcript stick-to-bottom', () => {await completeTurn(page, FIRST_PROMPT, 'FIRST-REPLY-END');const overflowing = await scrollState(page);- test.skip(+ test.skip( // https://github.com/tinyhumansai/openhuman/issues/6563overflowing.scrollHeight <= overflowing.clientHeight + 200,'transcript did not overflow enough to scroll — viewport too tall for this fixture');@@ -291,7 +291,7 @@ test.describe('Chat transcript stick-to-bottom', () => {await completeTurn(page, FIRST_PROMPT, 'FIRST-REPLY-END');const first = await scrollState(page);- test.skip(+ test.skip( // https://github.com/tinyhumansai/openhuman/issues/6563first.scrollHeight <= first.clientHeight + 200,'transcript did not overflow enough to scroll — viewport too tall for this fixture');@@ -384,7 +384,7 @@ test.describe('Chat transcript stick-to-bottom', () => {expect(threadA, 'thread A must have an id').not.toBeNull();const overflowing = await scrollState(page);- test.skip(+ test.skip( // https://github.com/tinyhumansai/openhuman/issues/6563overflowing.scrollHeight <= overflowing.clientHeight + 200,'transcript did not overflow enough to scroll — viewport too tall for this fixture');diff --git a/app/test/playwright/specs/settings-feature-preferences.spec.ts b/app/test/playwright/specs/settings-feature-preferences.spec.tsindex 23649d2669..5b58d435ff 100644--- a/app/test/playwright/specs/settings-feature-preferences.spec.ts+++ b/app/test/playwright/specs/settings-feature-preferences.spec.ts@@ -286,7 +286,7 @@ test.describe('Settings - Feature Preferences', () => {await openAuthenticatedRoute(page, 'pw-settings-mascot-voice', '/settings/voice');await expect(page.getByText('Mascot Voice')).toBeVisible();- test.skip(+ test.skip( // https://github.com/tinyhumansai/openhuman/issues/1762(await page.locator('[data-testid="mascot-voice-select"] option[value="__custom__"]').count()) === 0,@@ -294,7 +294,7 @@ test.describe('Settings - Feature Preferences', () => {);await page.getByTestId('mascot-voice-select').selectOption('__custom__');- test.skip(+ test.skip( // https://github.com/tinyhumansai/openhuman/issues/1762(await page.getByTestId('mascot-voice-input').count()) === 0,'custom mascot voice input did not appear after selecting __custom__');diff --git a/scripts/__tests__/browser-test-skips.test.mjs b/scripts/__tests__/browser-test-skips.test.mjsindex 6c6e4d56ff..278effe8af 100644--- a/scripts/__tests__/browser-test-skips.test.mjs+++ b/scripts/__tests__/browser-test-skips.test.mjs@@ -8,6 +8,9 @@ test("browser skip guard requires an issue URL on the added skip line", () => {"+ test.skip('tracked', async () => {}); // https://github.com/tinyhumansai/openhuman/issues/123","+ it.skip('missing link', () => {}); // see issue #456","+ describe.skip('also missing', () => {});",+ "+ this.skip(); // no issue link",+ "+ test.skip( // multiline call still needs link on this line",+ "+ 'tracked only on the next line' // https://github.com/tinyhumansai/openhuman/issues/789","+// test.skip('comment, not executable');","- test.skip('removed', () => {});",].join("\n");@@ -15,5 +18,7 @@ test("browser skip guard requires an issue URL on the added skip line", () => {assert.deepEqual(untrackedSkipLines(patch), ["it.skip('missing link', () => {}); // see issue #456","describe.skip('also missing', () => {});",+ "this.skip(); // no issue link",+ "test.skip( // multiline call still needs link on this line",]);});diff --git a/scripts/ci/check-browser-test-skips.mjs b/scripts/ci/check-browser-test-skips.mjsindex 7a4a460743..55ed4ddf0d 100644--- a/scripts/ci/check-browser-test-skips.mjs+++ b/scripts/ci/check-browser-test-skips.mjs@@ -11,7 +11,7 @@ export function untrackedSkipLines(patch) {if (!line.startsWith("+") || line.startsWith("+++")) continue;const source = line.slice(1);if (/^\s*\/\//.test(source)) continue;- if (!/\b(?:it|test|describe)\.skip\s*\(/.test(source)) continue;+ if (!/\b(?:it|test|describe)\.skip\s*\(|\bthis\.skip\s*\(/.test(source)) continue;if (!/https:\/\/github\.com\/[\w.-]+\/[\w.-]+\/issues\/\d+/.test(source)) {failures.push(source.trim());}