From f62d12a26313bb98786b1a9ebe0d0adea5c51439 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Wed, 30 Apr 2025 17:32:01 +0200 Subject: [PATCH 1/2] test: update assertions after some react canary changes --- tests/integration/static.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/static.test.ts b/tests/integration/static.test.ts index b332577ca4..21f2c5bd35 100644 --- a/tests/integration/static.test.ts +++ b/tests/integration/static.test.ts @@ -93,7 +93,7 @@ test('linked static resources are placed in correct place in ...Array.from(document('script[src]')).map((elem) => { return elem.attribs.src }), - ...Array.from(document('link[href]')).map((elem) => { + ...Array.from(document('link[href]:not([blocking="render"])')).map((elem) => { return elem.attribs.href }), ...Array.from(document('img[src]')).map((elem) => { @@ -143,7 +143,7 @@ test('linked static resources are placed in correct place in ...Array.from(document('script[src]')).map((elem) => { return elem.attribs.src }), - ...Array.from(document('link[href]')).map((elem) => { + ...Array.from(document('link[href]:not([blocking="render"])')).map((elem) => { return elem.attribs.href }), ...Array.from(document('img[src]')).map((elem) => { From 058021c4ffd0634c1fc5528e06f74c8eb66384d4 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Wed, 30 Apr 2025 20:12:19 +0200 Subject: [PATCH 2/2] test: update selector to use rel="expect" --- tests/integration/static.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/static.test.ts b/tests/integration/static.test.ts index 21f2c5bd35..534441673f 100644 --- a/tests/integration/static.test.ts +++ b/tests/integration/static.test.ts @@ -93,7 +93,7 @@ test('linked static resources are placed in correct place in ...Array.from(document('script[src]')).map((elem) => { return elem.attribs.src }), - ...Array.from(document('link[href]:not([blocking="render"])')).map((elem) => { + ...Array.from(document('link[href]:not([rel="expect"])')).map((elem) => { return elem.attribs.href }), ...Array.from(document('img[src]')).map((elem) => { @@ -143,7 +143,7 @@ test('linked static resources are placed in correct place in ...Array.from(document('script[src]')).map((elem) => { return elem.attribs.src }), - ...Array.from(document('link[href]:not([blocking="render"])')).map((elem) => { + ...Array.from(document('link[href]:not([rel="expect"])')).map((elem) => { return elem.attribs.href }), ...Array.from(document('img[src]')).map((elem) => {