Phase 8: Gitea CI — runner probe + PR gating jobs (fast-checks + api) #3
@@ -206,8 +206,8 @@ test.describe('harness self-validation — injected defects', () => {
|
||||
'Height must be < 44px with 20px injection (proving measurement tracks rendered geometry)',
|
||||
).toBeLessThan(44)
|
||||
|
||||
// REMOVE the injected style by navigating (page.reload drops inline style tags)
|
||||
// then re-measure — must be ≥ 44px again
|
||||
// REMOVE the injected style by deleting the <style> element via evaluate
|
||||
// (styleHandle.evaluate(el => el.remove()) — no page reload), then re-measure — must be ≥ 44px again
|
||||
await styleHandle.evaluate((el) => (el as Element).remove())
|
||||
const boxAfterRemoval = await calTab.boundingBox()
|
||||
expect(
|
||||
@@ -247,7 +247,8 @@ test.describe('harness self-validation — injected defects', () => {
|
||||
`scrollWidth (${overflowWithDefect.scrollWidth}) must be > clientWidth (${overflowWithDefect.clientWidth}) with 2000px injection (proving overflow detection works)`,
|
||||
).toBeGreaterThan(overflowWithDefect.clientWidth)
|
||||
|
||||
// REMOVE the injected style — overflow must clear
|
||||
// REMOVE the injected style by deleting the <style> element via evaluate
|
||||
// (styleHandle.evaluate(el => el.remove()) — no page reload) — overflow must clear
|
||||
await styleHandle.evaluate((el) => (el as Element).remove())
|
||||
const overflowAfterRemoval = await page.evaluate(() => ({
|
||||
scrollWidth: document.documentElement.scrollWidth,
|
||||
|
||||
Reference in New Issue
Block a user