Phase 8: Gitea CI — runner probe + PR gating jobs (fast-checks + api) #3
@@ -208,7 +208,7 @@ test.describe('harness self-validation — injected defects', () => {
|
||||
|
||||
// REMOVE the injected style by navigating (page.reload drops inline style tags)
|
||||
// then re-measure — must be ≥ 44px again
|
||||
await styleHandle.evaluate((el) => el.remove())
|
||||
await styleHandle.evaluate((el) => (el as Element).remove())
|
||||
const boxAfterRemoval = await calTab.boundingBox()
|
||||
expect(
|
||||
boxAfterRemoval,
|
||||
@@ -248,7 +248,7 @@ test.describe('harness self-validation — injected defects', () => {
|
||||
).toBeGreaterThan(overflowWithDefect.clientWidth)
|
||||
|
||||
// REMOVE the injected style — overflow must clear
|
||||
await styleHandle.evaluate((el) => el.remove())
|
||||
await styleHandle.evaluate((el) => (el as Element).remove())
|
||||
const overflowAfterRemoval = await page.evaluate(() => ({
|
||||
scrollWidth: document.documentElement.scrollWidth,
|
||||
clientWidth: document.documentElement.clientWidth,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": ["node"],
|
||||
"lib": ["ES2023"]
|
||||
"lib": ["ES2023", "DOM", "DOM.Iterable"]
|
||||
},
|
||||
"include": ["playwright.config.ts", "e2e/**/*"],
|
||||
"exclude": ["node_modules"]
|
||||
|
||||
Reference in New Issue
Block a user