Skip to content

fix: [#1620] Adds support for CSS pseudo selector :scope #1491

fix: [#1620] Adds support for CSS pseudo selector :scope

fix: [#1620] Adds support for CSS pseudo selector :scope #1491

Triggered via pull request March 11, 2025 00:52
Status Failure
Total duration 2m 55s
Artifacts

pull_request.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 3 warnings
build (22)
happy-dom#test: command (/home/runner/work/happy-dom/happy-dom/packages/happy-dom) /opt/hostedtoolcache/node/22.14.0/x64/bin/npm run test exited (1)
test/query-selector/QuerySelector.test.ts > QuerySelector > querySelector() > Return element for pseudo selector ":root": packages/happy-dom/test/query-selector/QuerySelector.test.ts#L1810
AssertionError: expected <html><head></head> <body></body></html> to be HTMLHtmlElement{ …(46) } // Object.is equality - Expected + Received + NodeList [ <html> <head /> <body /> - </html> + </html>, + ] ❯ test/query-selector/QuerySelector.test.ts:1810:47
test/window/BrowserWindow.test.ts > BrowserWindow > getComputedStyle() > Handles CSS in a defined scope pseudo element (@scope).: packages/happy-dom/test/window/BrowserWindow.test.ts#L1038
AssertionError: expected '' to be 'plum' // Object.is equality - Expected + Received - plum ❯ test/window/BrowserWindow.test.ts:1038:6
build (22)
Process completed with exit code 1.
build (20)
The job was canceled because "_22" failed.
test/query-selector/QuerySelector.test.ts > QuerySelector > querySelector() > Return element for pseudo selector ":root": packages/happy-dom/test/query-selector/QuerySelector.test.ts#L1810
AssertionError: expected <html><head></head> <body></body></html> to be HTMLHtmlElement{ …(46) } // Object.is equality - Expected + Received + NodeList [ <html> <head /> <body /> - </html> + </html>, + ] ❯ test/query-selector/QuerySelector.test.ts:1810:47
test/window/BrowserWindow.test.ts > BrowserWindow > getComputedStyle() > Handles CSS in a defined scope pseudo element (@scope).: packages/happy-dom/test/window/BrowserWindow.test.ts#L1038
AssertionError: expected '' to be 'plum' // Object.is equality - Expected + Received - plum ❯ test/window/BrowserWindow.test.ts:1038:6
build (20)
happy-dom#test: command (/home/runner/work/happy-dom/happy-dom/packages/happy-dom) /opt/hostedtoolcache/node/20.18.3/x64/bin/npm run test exited (1)
build (20)
The operation was canceled.
build (18)
The job was canceled because "_22" failed.
build (18)
The operation was canceled.
build (22)
Cache not found for keys: node-cache-Linux-x64-npm-a3cd690de3f9bb497efc90933c472ae6007a65d0375d6fe332ba0575100744c1
build (20)
Cache not found for keys: node-cache-Linux-x64-npm-a3cd690de3f9bb497efc90933c472ae6007a65d0375d6fe332ba0575100744c1
build (18)
Cache not found for keys: node-cache-Linux-x64-npm-a3cd690de3f9bb497efc90933c472ae6007a65d0375d6fe332ba0575100744c1