Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .changeset/puny-pens-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@lynx-js/web-worker-runtime": patch
"@lynx-js/web-constants": patch
"@lynx-js/web-core": patch
---

feat: support load bts chunk from remote address

- re-support chunk splitting
- support lynx.requireModule with a json file
- support lynx.requireModule, lynx.requireModuleAsync with a remote url
- support to add a breakpoint in chrome after reloading the web page
40 changes: 40 additions & 0 deletions packages/web-platform/web-constants/src/types/LynxModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,46 @@ export interface LynxTemplate {
appType: 'card' | 'lazy';
}

export type BTSChunkEntry = (
module: { exports: unknown },
exports: unknown,
lynxCoreInject: unknown,
Card: unknown,
setTimeout: unknown,
setInterval: unknown,
clearInterval: unknown,
clearTimeout: unknown,
NativeModules: unknown,
Component: unknown,
ReactLynx: unknown,
nativeAppId: unknown,
Behavior: unknown,
LynxJSBI: unknown,
lynx: unknown,
// BOM API
window: unknown,
document: unknown,
frames: unknown,
location: unknown,
navigator: unknown,
localStorage: unknown,
history: unknown,
Caches: unknown,
screen: unknown,
alert: unknown,
confirm: unknown,
prompt: unknown,
fetch: unknown,
XMLHttpRequest: unknown,
webkit: unknown,
Reporter: unknown,
print: unknown,
global: unknown,
// Lynx API
requestAnimationFrame: unknown,
cancelAnimationFrame: unknown,
) => unknown;

export interface LynxJSModule {
exports?: (lynx_runtime: any) => unknown;
}
3 changes: 3 additions & 0 deletions packages/web-platform/web-constants/src/types/NativeApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,14 @@ export interface NativeApp {

cancelAnimationFrame: (id: number) => void;

readScript: (sourceURL: string, entryName?: string) => string;

loadScript: (sourceURL: string, entryName?: string) => BundleInitReturnObj;

loadScriptAsync(
sourceURL: string,
callback: (message: string | null, exports?: BundleInitReturnObj) => void,
entryName?: string,
): void;
nativeModuleProxy: Record<string, any>;

Expand Down
92 changes: 24 additions & 68 deletions packages/web-platform/web-constants/src/utils/generateTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,65 +9,23 @@ const globalDisallowedVars = ['navigator', 'postMessage'];
type templateUpgrader = (template: LynxTemplate) => LynxTemplate;
const templateUpgraders: templateUpgrader[] = [
(template) => {
const defaultInjectStr = [
'Card',
'setTimeout',
'setInterval',
'clearInterval',
'clearTimeout',
'NativeModules',
'Component',
'ReactLynx',
'nativeAppId',
'Behavior',
'LynxJSBI',
'lynx',

// BOM API
'window',
'document',
'frames',
'location',
'navigator',
'localStorage',
'history',
'Caches',
'screen',
'alert',
'confirm',
'prompt',
'fetch',
'XMLHttpRequest',
'__WebSocket__', // We would provide `WebSocket` using `ProvidePlugin`
'webkit',
'Reporter',
'print',
'global',

// Lynx API
'requestAnimationFrame',
'cancelAnimationFrame',
].join(',');
template.appType = template.appType ?? (template.lepusCode.root.startsWith(
'(function (globDynamicComponentEntry',
)
? 'lazy'
: 'card');
/**
* The template version 1 has no module wrapper for bts code
*/
template.manifest = Object.fromEntries(
Object.entries(template.manifest).map(([key, value]) => [
key,
`module.exports={init: (lynxCoreInject) => { var {${defaultInjectStr}} = lynxCoreInject.tt; var module = {exports:{}}; var exports=module.exports; ${value}\n return module.exports; } }`,
]),
) as typeof template.manifest;
template.version = 2;
template.lepusCode = Object.fromEntries(
Object.entries(template.lepusCode).filter(([_, content]) =>
typeof content === 'string'
),
) as typeof template.lepusCode;
return template;
},
];

const generateModuleContent = (
fileName: string,
content: string,
eager: boolean,
appType: 'card' | 'lazy',
Expand All @@ -90,6 +48,8 @@ const generateModuleContent = (
appType !== 'card' ? 'module.exports=\n' : '',
content,
'\n})()',
'\n//# sourceURL=',
fileName,
].join('');

async function generateJavascriptUrl<T extends Record<string, string | {}>>(
Expand All @@ -99,21 +59,24 @@ async function generateJavascriptUrl<T extends Record<string, string | {}>>(
appType: 'card' | 'lazy',
templateName?: string,
): Promise<T> {
const processEntry = async ([name, content]: [string, string]) => [
name,
await createJsModuleUrl(
generateModuleContent(
content,
eager,
appType,
),
`${templateName}-${name.replaceAll('/', '')}.js`,
),
];
return Promise.all(
(Object.entries(obj).filter(([_, content]) =>
typeof content === 'string'
) as [string, string][]).map(processEntry),
) as [string, string][]).map(async ([name, content]) => {
const fileName = `${templateName}/${name.replaceAll('/', '_')}.js`;
return [
name,
await createJsModuleUrl(
generateModuleContent(
fileName,
content,
eager,
appType,
),
fileName,
),
];
}),
Comment thread
PupilTong marked this conversation as resolved.
Outdated
).then(
Object.fromEntries,
);
Expand All @@ -124,7 +87,7 @@ export async function generateTemplate(
createJsModuleUrl:
| ((content: string, name: string) => Promise<string>)
| ((content: string) => string),
templateName?: string,
templateName: string,
): Promise<LynxTemplate> {
template.version = template.version ?? 1;
if (template.version > currentSupportedTemplateVersion) {
Expand All @@ -148,12 +111,5 @@ export async function generateTemplate(
template.appType!,
templateName,
),
manifest: await generateJavascriptUrl(
template.manifest,
createJsModuleUrl as (content: string, name: string) => Promise<string>,
false,
template.appType!,
templateName,
),
};
}
1 change: 1 addition & 0 deletions packages/web-platform/web-core/src/utils/loadTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function createTemplateLoader(
const decodedTemplate = await generateTemplate(
template,
createJsModuleUrl,
encodeURIComponent(url),
);
resolve(decodedTemplate);
} catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"manifest": {
"/app-service.js": "globalThis.runtime = lynxCoreInject.tt; globalThis.__lynx_worker_type = 'background'",
"/manifest-chunk.js": "module.exports = 'hello';",
"/manifest-chunk2.js": "module.exports = 'world';"
"/manifest-chunk2.js": "module.exports = 'world';",
"/json": "{}"
},
"customSections": {},
"cardType": "react",
Expand Down
2 changes: 0 additions & 2 deletions packages/web-platform/web-tests/tests/react.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Copyright 2024 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.
Expand All @@ -23,7 +23,7 @@
ReturnType<typeof expect<Page>>['toHaveScreenshot']
>[0],
) => {
await expect(page).toHaveScreenshot([

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (4/4) / check

[firefox] › tests/react.spec.ts:2377:7 › reactlynx3 tests › elements › svg › basic-element-svg-background-image

6) [firefox] › tests/react.spec.ts:2377:7 › reactlynx3 tests › elements › svg › basic-element-svg-background-image Error: expect(page).toHaveScreenshot(expected) failed 32531 pixels (ratio 0.04 of all image pixels) are different. Snapshot: svg/background-image/index.png Call log: - Expect "toHaveScreenshot(svg/background-image/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - 32531 pixels (ratio 0.04 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - 32531 pixels (ratio 0.04 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:2381:17

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (4/4) / check

[firefox] › tests/react.spec.ts:2372:7 › reactlynx3 tests › elements › svg › basic-element-svg-with-position

5) [firefox] › tests/react.spec.ts:2372:7 › reactlynx3 tests › elements › svg › basic-element-svg-with-position Error: expect(page).toHaveScreenshot(expected) failed 226560 pixels (ratio 0.25 of all image pixels) are different. Snapshot: svg/with-position/index.png Call log: - Expect "toHaveScreenshot(svg/with-position/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - 226560 pixels (ratio 0.25 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - 226560 pixels (ratio 0.25 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:2374:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (3/4) / check

[chromium] › tests/react.spec.ts:4574:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-right-left-with-direction-rtl

3) [chromium] › tests/react.spec.ts:4574:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-right-left-with-direction-rtl Error: expect(page).toHaveScreenshot(expected) failed Expected an image 393px by 727px, received 980px by 1813px. 175118 pixels (ratio 0.10 of all image pixels) are different. Snapshot: basic-linear-column-container-main-axis-graverty-right-left-with-direction-rtl/index/index.png Call log: - Expect "toHaveScreenshot(basic-linear-column-container-main-axis-graverty-right-left-with-direction-rtl/index/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - Expected an image 393px by 727px, received 980px by 1813px. 175118 pixels (ratio 0.10 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - Expected an image 393px by 727px, received 980px by 1813px. 175118 pixels (ratio 0.10 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4580:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (3/4) / check

[chromium] › tests/react.spec.ts:4565:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl

2) [chromium] › tests/react.spec.ts:4565:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl Retry #4 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(page).toHaveScreenshot(expected) failed Expected an image 393px by 727px, received 980px by 1813px. 176070 pixels (ratio 0.10 of all image pixels) are different. Snapshot: basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl/index/index.png Call log: - Expect "toHaveScreenshot(basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl/index/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - Expected an image 393px by 727px, received 980px by 1813px. 176070 pixels (ratio 0.10 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - Expected an image 393px by 727px, received 980px by 1813px. 176070 pixels (ratio 0.10 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4571:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (3/4) / check

[chromium] › tests/react.spec.ts:4565:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl

2) [chromium] › tests/react.spec.ts:4565:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(page).toHaveScreenshot(expected) failed Expected an image 393px by 727px, received 980px by 1813px. 175564 pixels (ratio 0.10 of all image pixels) are different. Snapshot: basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl/index/index.png Call log: - Expect "toHaveScreenshot(basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl/index/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - Expected an image 393px by 727px, received 980px by 1813px. 175564 pixels (ratio 0.10 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - Expected an image 393px by 727px, received 980px by 1813px. 175564 pixels (ratio 0.10 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4571:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (3/4) / check

[chromium] › tests/react.spec.ts:4565:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl

2) [chromium] › tests/react.spec.ts:4565:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(page).toHaveScreenshot(expected) failed Expected an image 393px by 727px, received 980px by 1813px. 175896 pixels (ratio 0.10 of all image pixels) are different. Snapshot: basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl/index/index.png Call log: - Expect "toHaveScreenshot(basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl/index/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - Expected an image 393px by 727px, received 980px by 1813px. 175896 pixels (ratio 0.10 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - Expected an image 393px by 727px, received 980px by 1813px. 175896 pixels (ratio 0.10 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4571:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (3/4) / check

[chromium] › tests/react.spec.ts:4565:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl

2) [chromium] › tests/react.spec.ts:4565:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(page).toHaveScreenshot(expected) failed Expected an image 393px by 727px, received 980px by 1813px. 175932 pixels (ratio 0.10 of all image pixels) are different. Snapshot: basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl/index/index.png Call log: - Expect "toHaveScreenshot(basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl/index/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - Expected an image 393px by 727px, received 980px by 1813px. 175932 pixels (ratio 0.10 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - Expected an image 393px by 727px, received 980px by 1813px. 175932 pixels (ratio 0.10 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4571:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (3/4) / check

[chromium] › tests/react.spec.ts:4565:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl

2) [chromium] › tests/react.spec.ts:4565:5 › reactlynx3 tests › linear layout › basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl Error: expect(page).toHaveScreenshot(expected) failed Expected an image 393px by 727px, received 980px by 1813px. 176121 pixels (ratio 0.10 of all image pixels) are different. Snapshot: basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl/index/index.png Call log: - Expect "toHaveScreenshot(basic-linear-column-container-main-axis-graverty-top-bottom-with-direction-rtl/index/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - Expected an image 393px by 727px, received 980px by 1813px. 176121 pixels (ratio 0.10 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - Expected an image 393px by 727px, received 980px by 1813px. 176121 pixels (ratio 0.10 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4571:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (3/4) / check

[chromium] › tests/react.spec.ts:4556:5 › reactlynx3 tests › linear layout › basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl

1) [chromium] › tests/react.spec.ts:4556:5 › reactlynx3 tests › linear layout › basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(page).toHaveScreenshot(expected) failed Expected an image 393px by 727px, received 980px by 1813px. 175679 pixels (ratio 0.10 of all image pixels) are different. Snapshot: basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl/index/index.png Call log: - Expect "toHaveScreenshot(basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl/index/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - Expected an image 393px by 727px, received 980px by 1813px. 175679 pixels (ratio 0.10 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - Expected an image 393px by 727px, received 980px by 1813px. 175679 pixels (ratio 0.10 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4562:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (3/4) / check

[chromium] › tests/react.spec.ts:4556:5 › reactlynx3 tests › linear layout › basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl

1) [chromium] › tests/react.spec.ts:4556:5 › reactlynx3 tests › linear layout › basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(page).toHaveScreenshot(expected) failed Expected an image 393px by 727px, received 980px by 1813px. 175547 pixels (ratio 0.10 of all image pixels) are different. Snapshot: basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl/index/index.png Call log: - Expect "toHaveScreenshot(basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl/index/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - Expected an image 393px by 727px, received 980px by 1813px. 175547 pixels (ratio 0.10 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - Expected an image 393px by 727px, received 980px by 1813px. 175547 pixels (ratio 0.10 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4562:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (3/4) / check

[chromium] › tests/react.spec.ts:4556:5 › reactlynx3 tests › linear layout › basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl

1) [chromium] › tests/react.spec.ts:4556:5 › reactlynx3 tests › linear layout › basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(page).toHaveScreenshot(expected) failed Expected an image 393px by 727px, received 980px by 1813px. 175391 pixels (ratio 0.10 of all image pixels) are different. Snapshot: basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl/index/index.png Call log: - Expect "toHaveScreenshot(basic-linear-row-container-main-axis-graverty-start-end-with-direction-rtl/index/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - Expected an image 393px by 727px, received 980px by 1813px. 175391 pixels (ratio 0.10 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - Expected an image 393px by 727px, received 980px by 1813px. 175391 pixels (ratio 0.10 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4562:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-CSR (4/4) / check

[firefox] › tests/react.spec.ts:4529:5 › reactlynx3 tests › linear layout › basic-linear-row-container-main-axis-justify-content-right-left-with-direction-rtl

6) [firefox] › tests/react.spec.ts:4529:5 › reactlynx3 tests › linear layout › basic-linear-row-container-main-axis-justify-content-right-left-with-direction-rtl Error: expect(page).toHaveScreenshot(expected) failed 90000 pixels (ratio 0.10 of all image pixels) are different. Snapshot: basic-linear-row-container-main-axis-justify-content-right-left-with-direction-rtl/index/index.png Call log: - Expect "toHaveScreenshot(basic-linear-row-container-main-axis-justify-content-right-left-with-direction-rtl/index/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - 90000 pixels (ratio 0.10 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - 90000 pixels (ratio 0.10 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4535:15

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-CSR (4/4) / check

[firefox] › tests/react.spec.ts:3185:7 › reactlynx3 tests › elements › x-overlay-ng › basic-element-x-overlay-ng-counter-test2-could-show-all

4) [firefox] › tests/react.spec.ts:3185:7 › reactlynx3 tests › elements › x-overlay-ng › basic-element-x-overlay-ng-counter-test2-could-show-all Error: expect(page).toHaveScreenshot(expected) failed 178 pixels (ratio 0.01 of all image pixels) are different. Snapshot: x-overlay-ng/counter-test2-could-show-all//could-open-all-4.png Call log: - Expect "toHaveScreenshot(x-overlay-ng/counter-test2-could-show-all//could-open-all-4.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - waiting for fonts to load... - fonts loaded - 178 pixels (ratio 0.01 of all image pixels) are different. - waiting 100ms before taking screenshot - taking page screenshot - waiting for fonts to load... - fonts loaded - captured a stable screenshot - 178 pixels (ratio 0.01 of all image pixels) are different. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:3204:17

Check failure on line 26 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1634:5 › reactlynx3 tests › apis › api-animate

2) [firefox] › tests/react.spec.ts:1634:5 › reactlynx3 tests › apis › api-animate ──────────────── Error: expect(page).toHaveScreenshot(expected) failed Timeout: 5000ms Timeout 5000ms exceeded. Snapshot: api-animate/animate/index.png Call log: - Expect "toHaveScreenshot(api-animate/animate/index.png)" with timeout 5000ms - verifying given screenshot expectation - taking page screenshot - Timeout 5000ms exceeded. 24 | >[0], 25 | ) => { > 26 | await expect(page).toHaveScreenshot([ | ^ 27 | `${caseName}`, 28 | `${subcaseName}`, 29 | `${label}.png`, at diffScreenShot (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:26:22) at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1642:15
`${caseName}`,
`${subcaseName}`,
`${label}.png`,
Expand Down Expand Up @@ -71,7 +71,7 @@
await goto(page, title);
await wait(100);
const target = await page.locator('#target');
await expect(target).toHaveCSS('height', '100px');

Check failure on line 74 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (1/4) / check

[webkit] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect

1) [webkit] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect ────────────── Retry #4 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "100px" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 72 | await wait(100); 73 | const target = await page.locator('#target'); > 74 | await expect(target).toHaveCSS('height', '100px'); | ^ 75 | await expect(target).toHaveCSS('width', '100px'); 76 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); 77 | }); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:74:28

Check failure on line 74 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (1/4) / check

[webkit] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect

1) [webkit] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect ────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "100px" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 72 | await wait(100); 73 | const target = await page.locator('#target'); > 74 | await expect(target).toHaveCSS('height', '100px'); | ^ 75 | await expect(target).toHaveCSS('width', '100px'); 76 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); 77 | }); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:74:28

Check failure on line 74 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (1/4) / check

[webkit] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect

1) [webkit] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect ────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "100px" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 72 | await wait(100); 73 | const target = await page.locator('#target'); > 74 | await expect(target).toHaveCSS('height', '100px'); | ^ 75 | await expect(target).toHaveCSS('width', '100px'); 76 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); 77 | }); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:74:28

Check failure on line 74 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (1/4) / check

[webkit] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect

1) [webkit] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect ────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "100px" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 72 | await wait(100); 73 | const target = await page.locator('#target'); > 74 | await expect(target).toHaveCSS('height', '100px'); | ^ 75 | await expect(target).toHaveCSS('width', '100px'); 76 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); 77 | }); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:74:28

Check failure on line 74 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (2/4) / check

[chromium] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect

1) [chromium] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect ──────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "100px" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 72 | await wait(100); 73 | const target = await page.locator('#target'); > 74 | await expect(target).toHaveCSS('height', '100px'); | ^ 75 | await expect(target).toHaveCSS('width', '100px'); 76 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); 77 | }); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:74:28

Check failure on line 74 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (2/4) / check

[chromium] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect

1) [chromium] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect ──────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "100px" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 72 | await wait(100); 73 | const target = await page.locator('#target'); > 74 | await expect(target).toHaveCSS('height', '100px'); | ^ 75 | await expect(target).toHaveCSS('width', '100px'); 76 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); 77 | }); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:74:28

Check failure on line 74 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (2/4) / check

[chromium] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect

1) [chromium] › tests/react.spec.ts:70:5 › reactlynx3 tests › basic › basic-pink-rect ──────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "100px" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 72 | await wait(100); 73 | const target = await page.locator('#target'); > 74 | await expect(target).toHaveCSS('height', '100px'); | ^ 75 | await expect(target).toHaveCSS('width', '100px'); 76 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); 77 | }); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:74:28
await expect(target).toHaveCSS('width', '100px');
await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)');
});
Expand All @@ -81,7 +81,7 @@
await goto(page, title);
await wait(100);
const target = page.locator('#target');
await target.click();

Check failure on line 84 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (2/4) / check

[chromium] › tests/react.spec.ts:79:5 › reactlynx3 tests › basic › basic-reload

2) [chromium] › tests/react.spec.ts:79:5 › reactlynx3 tests › basic › basic-reload ─────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#target') 82 | await wait(100); 83 | const target = page.locator('#target'); > 84 | await target.click(); | ^ 85 | await wait(100); 86 | await expect(await target.getAttribute('style')).toContain('green'); 87 | await page.evaluate(() => { at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:84:20
await wait(100);
await expect(await target.getAttribute('style')).toContain('green');
await page.evaluate(() => {
Expand All @@ -107,13 +107,13 @@
)
.filter(i => i.getAttribute('lynx-tag') === 'page').length
),
).toBe(1);

Check failure on line 110 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (2/4) / check

[chromium] › tests/react.spec.ts:94:5 › reactlynx3 tests › basic › basic-reload-page-only-one

1) [chromium] › tests/react.spec.ts:94:5 › reactlynx3 tests › basic › basic-reload-page-only-one ─ Retry #4 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 1 Received: 0 108 | .filter(i => i.getAttribute('lynx-tag') === 'page').length 109 | ), > 110 | ).toBe(1); | ^ 111 | }); 112 | test('basic-bindtap', async ({ page }, { title }) => { 113 | await goto(page, title); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:110:9

Check failure on line 110 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (2/4) / check

[chromium] › tests/react.spec.ts:94:5 › reactlynx3 tests › basic › basic-reload-page-only-one

1) [chromium] › tests/react.spec.ts:94:5 › reactlynx3 tests › basic › basic-reload-page-only-one ─ Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 1 Received: 0 108 | .filter(i => i.getAttribute('lynx-tag') === 'page').length 109 | ), > 110 | ).toBe(1); | ^ 111 | }); 112 | test('basic-bindtap', async ({ page }, { title }) => { 113 | await goto(page, title); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:110:9

Check failure on line 110 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (2/4) / check

[chromium] › tests/react.spec.ts:94:5 › reactlynx3 tests › basic › basic-reload-page-only-one

1) [chromium] › tests/react.spec.ts:94:5 › reactlynx3 tests › basic › basic-reload-page-only-one ─ Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 1 Received: 0 108 | .filter(i => i.getAttribute('lynx-tag') === 'page').length 109 | ), > 110 | ).toBe(1); | ^ 111 | }); 112 | test('basic-bindtap', async ({ page }, { title }) => { 113 | await goto(page, title); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:110:9

Check failure on line 110 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (2/4) / check

[chromium] › tests/react.spec.ts:94:5 › reactlynx3 tests › basic › basic-reload-page-only-one

1) [chromium] › tests/react.spec.ts:94:5 › reactlynx3 tests › basic › basic-reload-page-only-one ─ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 1 Received: 0 108 | .filter(i => i.getAttribute('lynx-tag') === 'page').length 109 | ), > 110 | ).toBe(1); | ^ 111 | }); 112 | test('basic-bindtap', async ({ page }, { title }) => { 113 | await goto(page, title); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:110:9
});
test('basic-bindtap', async ({ page }, { title }) => {
await goto(page, title);
await wait(100);
const target = page.locator('#target');
await target.click();

Check failure on line 116 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (1/4) / check

[webkit] › tests/react.spec.ts:112:5 › reactlynx3 tests › basic › basic-bindtap

2) [webkit] › tests/react.spec.ts:112:5 › reactlynx3 tests › basic › basic-bindtap ─────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#target') 114 | await wait(100); 115 | const target = page.locator('#target'); > 116 | await target.click(); | ^ 117 | await wait(100); 118 | await expect(await target.getAttribute('style')).toContain('green'); 119 | await target.click(); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:116:20
await wait(100);
await expect(await target.getAttribute('style')).toContain('green');
await target.click();
Expand All @@ -124,7 +124,7 @@
await goto(page, title);
await wait(100);
const target = page.locator('#target');
await target.click();

Check failure on line 127 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (1/4) / check

[webkit] › tests/react.spec.ts:123:5 › reactlynx3 tests › basic › basic-event-target-id

3) [webkit] › tests/react.spec.ts:123:5 › reactlynx3 tests › basic › basic-event-target-id ─────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('#target') 125 | await wait(100); 126 | const target = page.locator('#target'); > 127 | await target.click(); | ^ 128 | await wait(100); 129 | await expect(await target.getAttribute('style')).toContain('green'); 130 | await target.click(); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:127:20
await wait(100);
await expect(await target.getAttribute('style')).toContain('green');
await target.click();
Expand Down Expand Up @@ -379,7 +379,7 @@
xDistance: 10,
yDistance: 0,
});
expect(page.locator('#target1'), 'has touches').toHaveCSS(

Check failure on line 382 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (2/4) / check

[chromium] › tests/react.spec.ts:369:5 › reactlynx3 tests › basic › basic-mts-bindtouchstart

3) [chromium] › tests/react.spec.ts:369:5 › reactlynx3 tests › basic › basic-mts-bindtouchstart ── Error: has touches expect(locator).toHaveCSS(expected) failed Locator: locator('#target1') Expected string: "rgb(0, 128, 0)" Received string: "rgb(255, 192, 203)" Call log: - has touches with timeout 5000ms - waiting for locator('#target1') 2 × locator resolved to <x-view l-uid="3" id="target1" lynx-tag="view" l-p-comp-uid="1"></x-view> - unexpected value "rgb(255, 192, 203)" 380 | yDistance: 0, 381 | }); > 382 | expect(page.locator('#target1'), 'has touches').toHaveCSS( | ^ 383 | 'background-color', 384 | 'rgb(0, 128, 0)', 385 | ); // green at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:382:57
'background-color',
'rgb(0, 128, 0)',
); // green
Expand Down Expand Up @@ -1593,7 +1593,7 @@
await goto(page, title);
await wait(100);
const target = page.locator('#target');
await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink

Check failure on line 1596 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (4/4) / check

[firefox] › tests/react.spec.ts:1592:5 › reactlynx3 tests › apis › api-sendGlobalEvent

1) [firefox] › tests/react.spec.ts:1592:5 › reactlynx3 tests › apis › api-sendGlobalEvent ──────── Retry #4 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "rgb(255, 192, 203)" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 1594 | await wait(100); 1595 | const target = page.locator('#target'); > 1596 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink | ^ 1597 | await page.evaluate(() => { 1598 | // @ts-expect-error 1599 | globalThis.lynxView.sendGlobalEvent('event-test', ['change']); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1596:28

Check failure on line 1596 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (4/4) / check

[firefox] › tests/react.spec.ts:1592:5 › reactlynx3 tests › apis › api-sendGlobalEvent

1) [firefox] › tests/react.spec.ts:1592:5 › reactlynx3 tests › apis › api-sendGlobalEvent ──────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "rgb(255, 192, 203)" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 1594 | await wait(100); 1595 | const target = page.locator('#target'); > 1596 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink | ^ 1597 | await page.evaluate(() => { 1598 | // @ts-expect-error 1599 | globalThis.lynxView.sendGlobalEvent('event-test', ['change']); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1596:28

Check failure on line 1596 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (4/4) / check

[firefox] › tests/react.spec.ts:1592:5 › reactlynx3 tests › apis › api-sendGlobalEvent

1) [firefox] › tests/react.spec.ts:1592:5 › reactlynx3 tests › apis › api-sendGlobalEvent ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "rgb(255, 192, 203)" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 1594 | await wait(100); 1595 | const target = page.locator('#target'); > 1596 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink | ^ 1597 | await page.evaluate(() => { 1598 | // @ts-expect-error 1599 | globalThis.lynxView.sendGlobalEvent('event-test', ['change']); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1596:28

Check failure on line 1596 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (4/4) / check

[firefox] › tests/react.spec.ts:1592:5 › reactlynx3 tests › apis › api-sendGlobalEvent

1) [firefox] › tests/react.spec.ts:1592:5 › reactlynx3 tests › apis › api-sendGlobalEvent ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#target') Expected string: "rgb(255, 192, 203)" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#target') 1594 | await wait(100); 1595 | const target = page.locator('#target'); > 1596 | await expect(target).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink | ^ 1597 | await page.evaluate(() => { 1598 | // @ts-expect-error 1599 | globalThis.lynxView.sendGlobalEvent('event-test', ['change']); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1596:28
await page.evaluate(() => {
// @ts-expect-error
globalThis.lynxView.sendGlobalEvent('event-test', ['change']);
Expand All @@ -1608,7 +1608,7 @@
await goto(page, title);
await wait(100);
const result = page.locator('#result');
await expect(result).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink

Check failure on line 1611 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (4/4) / check

[firefox] › tests/react.spec.ts:1607:5 › reactlynx3 tests › apis › api-invoke-success

2) [firefox] › tests/react.spec.ts:1607:5 › reactlynx3 tests › apis › api-invoke-success ───────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#result') Expected string: "rgb(255, 192, 203)" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#result') 1609 | await wait(100); 1610 | const result = page.locator('#result'); > 1611 | await expect(result).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink | ^ 1612 | await page.locator('#target').click(); 1613 | await wait(100); 1614 | await expect(result).toHaveCSS('background-color', 'rgb(0, 128, 0)'); // green at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1611:28

Check failure on line 1611 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (4/4) / check

[firefox] › tests/react.spec.ts:1607:5 › reactlynx3 tests › apis › api-invoke-success

2) [firefox] › tests/react.spec.ts:1607:5 › reactlynx3 tests › apis › api-invoke-success ───────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#result') Expected string: "rgb(255, 192, 203)" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#result') 1609 | await wait(100); 1610 | const result = page.locator('#result'); > 1611 | await expect(result).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink | ^ 1612 | await page.locator('#target').click(); 1613 | await wait(100); 1614 | await expect(result).toHaveCSS('background-color', 'rgb(0, 128, 0)'); // green at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1611:28

Check failure on line 1611 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (4/4) / check

[firefox] › tests/react.spec.ts:1607:5 › reactlynx3 tests › apis › api-invoke-success

2) [firefox] › tests/react.spec.ts:1607:5 › reactlynx3 tests › apis › api-invoke-success ───────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#result') Expected string: "rgb(255, 192, 203)" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#result') 1609 | await wait(100); 1610 | const result = page.locator('#result'); > 1611 | await expect(result).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink | ^ 1612 | await page.locator('#target').click(); 1613 | await wait(100); 1614 | await expect(result).toHaveCSS('background-color', 'rgb(0, 128, 0)'); // green at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1611:28

Check failure on line 1611 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (4/4) / check

[firefox] › tests/react.spec.ts:1607:5 › reactlynx3 tests › apis › api-invoke-success

2) [firefox] › tests/react.spec.ts:1607:5 › reactlynx3 tests › apis › api-invoke-success ───────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#result') Expected string: "rgb(255, 192, 203)" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#result') 1609 | await wait(100); 1610 | const result = page.locator('#result'); > 1611 | await expect(result).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink | ^ 1612 | await page.locator('#target').click(); 1613 | await wait(100); 1614 | await expect(result).toHaveCSS('background-color', 'rgb(0, 128, 0)'); // green at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1611:28
await page.locator('#target').click();
await wait(100);
await expect(result).toHaveCSS('background-color', 'rgb(0, 128, 0)'); // green
Expand All @@ -1617,7 +1617,7 @@
await goto(page, title);
await wait(100);
const result = page.locator('#result');
await expect(result).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink

Check failure on line 1620 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1616:5 › reactlynx3 tests › apis › api-invoke-fail

2) [firefox] › tests/react.spec.ts:1616:5 › reactlynx3 tests › apis › api-invoke-fail ──────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#result') Expected string: "rgb(255, 192, 203)" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#result') 1618 | await wait(100); 1619 | const result = page.locator('#result'); > 1620 | await expect(result).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink | ^ 1621 | await page.locator('#target').click(); 1622 | await wait(100); 1623 | await expect(result).toHaveCSS('background-color', 'rgb(0, 128, 0)'); // green at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1620:28

Check failure on line 1620 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-SSR (4/4) / check

[firefox] › tests/react.spec.ts:1616:5 › reactlynx3 tests › apis › api-invoke-fail

3) [firefox] › tests/react.spec.ts:1616:5 › reactlynx3 tests › apis › api-invoke-fail ──────────── Error: expect(locator).toHaveCSS(expected) failed Locator: locator('#result') Expected string: "rgb(255, 192, 203)" Received: <element(s) not found> Timeout: 5000ms Call log: - Expect "toHaveCSS" with timeout 5000ms - waiting for locator('#result') 1618 | await wait(100); 1619 | const result = page.locator('#result'); > 1620 | await expect(result).toHaveCSS('background-color', 'rgb(255, 192, 203)'); // pink | ^ 1621 | await page.locator('#target').click(); 1622 | await wait(100); 1623 | await expect(result).toHaveCSS('background-color', 'rgb(0, 128, 0)'); // green at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1620:28
await page.locator('#target').click();
await wait(100);
await expect(result).toHaveCSS('background-color', 'rgb(0, 128, 0)'); // green
Expand Down Expand Up @@ -1672,8 +1672,8 @@
});
await goto(page, title);
await wait(200);
!isSSR && expect(mts).toBe(true);

Check failure on line 1675 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (1/4) / check

[webkit] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [webkit] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1673 | await goto(page, title); 1674 | await wait(200); > 1675 | !isSSR && expect(mts).toBe(true); | ^ 1676 | expect(bts).toBe(true); 1677 | }, 1678 | ); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1675:31
expect(bts).toBe(true);

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (2/4) / check

[chromium] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

2) [chromium] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars Retry #4 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (2/4) / check

[chromium] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

2) [chromium] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (2/4) / check

[chromium] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

2) [chromium] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (2/4) / check

[chromium] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

2) [chromium] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (2/4) / check

[chromium] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

2) [chromium] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ─ Retry #4 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ─ Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ─ Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ─ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (1/4) / check

[webkit] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [webkit] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ── Retry #4 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (1/4) / check

[webkit] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [webkit] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (1/4) / check

[webkit] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [webkit] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ─ Retry #4 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ─ Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ─ Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21

Check failure on line 1676 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars

1) [firefox] › tests/react.spec.ts:1660:5 › reactlynx3 tests › apis › api-global-disallowed-vars ─ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1674 | await wait(200); 1675 | !isSSR && expect(mts).toBe(true); > 1676 | expect(bts).toBe(true); | ^ 1677 | }, 1678 | ); 1679 | test( at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1676:21
},
);
test(
Expand All @@ -1691,7 +1691,7 @@
});
await goto(page, title);
await wait(200);
!isSSR && expect(mts).toBe(true);

Check failure on line 1694 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (4/4) / check

[firefox] › tests/react.spec.ts:1679:5 › reactlynx3 tests › apis › api-globalThis

3) [firefox] › tests/react.spec.ts:1679:5 › reactlynx3 tests › apis › api-globalThis ───────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 1692 | await goto(page, title); 1693 | await wait(200); > 1694 | !isSSR && expect(mts).toBe(true); | ^ 1695 | expect(bts).toBe(true); 1696 | }, 1697 | ); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:1694:31
expect(bts).toBe(true);
},
);
Expand Down Expand Up @@ -1872,7 +1872,6 @@
test(
'config-splitchunk-split-by-experience',
async ({ page }, { title }) => {
test.skip(true, 'incorrectly implemented test case');
await goto(page, title, undefined, true);
await wait(1500);
const target = page.locator('#target');
Expand All @@ -1882,7 +1881,6 @@
test(
'config-splitchunk-split-by-module',
async ({ page }, { title }) => {
test.skip(true, 'incorrectly implemented test case');
await goto(page, title, undefined, true);
await wait(1500);
const target = page.locator('#target');
Expand Down Expand Up @@ -2196,7 +2194,7 @@
await wait(300);
// --initialtextinitial
let count = await page.getByText('--').count();
expect(count).toBe(1);

Check failure on line 2197 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (4/4) / check

[firefox] › tests/react.spec.ts:2190:7 › reactlynx3 tests › elements › text › basic-element-text-set-native-props-with-setData

4) [firefox] › tests/react.spec.ts:2190:7 › reactlynx3 tests › elements › text › basic-element-text-set-native-props-with-setData Error: expect(received).toBe(expected) // Object.is equality Expected: 1 Received: 0 2195 | // --initialtextinitial 2196 | let count = await page.getByText('--').count(); > 2197 | expect(count).toBe(1); | ^ 2198 | count = await page.getByText('initial').count(); 2199 | expect(count).toBeGreaterThanOrEqual(1); 2200 | await page.locator('#target').click(); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:2197:25
count = await page.getByText('initial').count();
expect(count).toBeGreaterThanOrEqual(1);
await page.locator('#target').click();
Expand Down Expand Up @@ -2901,7 +2899,7 @@
await page.locator('input').press('Enter');
await wait(100);
const result = await page.locator('.result').first().innerText();
expect(result).toBe('bindconfirm');

Check failure on line 2902 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-CSR (4/4) / check

[firefox] › tests/react.spec.ts:2896:7 › reactlynx3 tests › elements › x-input › basic-element-x-input-bindconfirm

3) [firefox] › tests/react.spec.ts:2896:7 › reactlynx3 tests › elements › x-input › basic-element-x-input-bindconfirm Error: expect(received).toBe(expected) // Object.is equality Expected: "bindconfirm" Received: "" 2900 | await wait(100); 2901 | const result = await page.locator('.result').first().innerText(); > 2902 | expect(result).toBe('bindconfirm'); | ^ 2903 | }); 2904 | // input/bindconfirm test-case end 2905 | at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:2902:24
});
// input/bindconfirm test-case end

Expand Down Expand Up @@ -2950,7 +2948,7 @@
)?.click();
});
await wait(200);
expect(val).toBe(true);

Check failure on line 2951 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (4/4) / check

[firefox] › tests/react.spec.ts:2917:7 › reactlynx3 tests › elements › x-input › basic-element-x-input-getValue

7) [firefox] › tests/react.spec.ts:2917:7 › reactlynx3 tests › elements › x-input › basic-element-x-input-getValue Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 2949 | }); 2950 | await wait(200); > 2951 | expect(val).toBe(true); | ^ 2952 | expect(selectionBegin).toBe(true); 2953 | expect(selectionEnd).toBe(true); 2954 | }, at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:2951:23
expect(selectionBegin).toBe(true);
expect(selectionEnd).toBe(true);
},
Expand Down Expand Up @@ -4220,7 +4218,7 @@
// NOTE: dataset is not included in the previous json value, so we should
// manually find it from the JSHandle.
const dataset = await (
await (await msg.args()[0]!.getProperty('target')).getProperty(

Check failure on line 4221 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-CSR (4/4) / check

[firefox] › tests/react.spec.ts:4208:7 › reactlynx3 tests › elements › x-textarea › basic-element-x-textarea-bindinput

5) [firefox] › tests/react.spec.ts:4208:7 › reactlynx3 tests › elements › x-textarea › basic-element-x-textarea-bindinput Error: jsHandle.getProperty: Test ended. 4219 | // manually find it from the JSHandle. 4220 | const dataset = await ( > 4221 | await (await msg.args()[0]!.getProperty('target')).getProperty( | ^ 4222 | 'dataset', 4223 | ) 4224 | ).jsonValue(); at Page.<anonymous> (/__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4221:66)
'dataset',
)
).jsonValue();
Expand Down Expand Up @@ -4259,7 +4257,7 @@
await wait(100);
expect(bindblur).toBeTruthy();
expect(bindfocus).toBeTruthy();
expect(bindinput).toBeTruthy();

Check failure on line 4260 in packages/web-platform/web-tests/tests/react.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright ALL_ON_UI-CSR (4/4) / check

[firefox] › tests/react.spec.ts:4208:7 › reactlynx3 tests › elements › x-textarea › basic-element-x-textarea-bindinput

5) [firefox] › tests/react.spec.ts:4208:7 › reactlynx3 tests › elements › x-textarea › basic-element-x-textarea-bindinput Error: expect(received).toBeTruthy() Received: false 4258 | expect(bindblur).toBeTruthy(); 4259 | expect(bindfocus).toBeTruthy(); > 4260 | expect(bindinput).toBeTruthy(); | ^ 4261 | }, 4262 | ); 4263 | // x-textarea/bindinput test-case end at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/react.spec.ts:4260:29
},
);
// x-textarea/bindinput test-case end
Expand Down
18 changes: 18 additions & 0 deletions packages/web-platform/web-tests/tests/web-core.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
);
await goto(page);
const mainWorker = await getMainThreadWorker(page);
await mainWorker.evaluate(() => {

Check failure on line 170 in packages/web-platform/web-tests/tests/web-core.test.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (3/4) / check

[chromium] › tests/web-core.test.ts:163:3 › web core tests › lynx.requireModule+sync

2) [chromium] › tests/web-core.test.ts:163:3 › web core tests › lynx.requireModule+sync ────────── TypeError: Cannot read properties of undefined (reading 'evaluate') 168 | await goto(page); 169 | const mainWorker = await getMainThreadWorker(page); > 170 | await mainWorker.evaluate(() => { | ^ 171 | globalThis.runtime.renderPage = () => {}; 172 | }); 173 | const worker = await getBackgroundThreadWorker(page); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/web-core.test.ts:170:22
globalThis.runtime.renderPage = () => {};
});
const worker = await getBackgroundThreadWorker(page);
Expand Down Expand Up @@ -204,10 +204,28 @@
expect(success).toBe(true);
expect(fail).toBe(false);
});

test('api-nativeApp-readScript', async ({ page, browserName }) => {
// firefox dose not support this.
test.skip(browserName === 'firefox');
await goto(page);
const mainWorker = await getMainThreadWorker(page);
await mainWorker.evaluate(() => {
globalThis.runtime.renderPage = () => {};
});
await wait(3000);
const backWorker = await getBackgroundThreadWorker(page);
const jsonContent = await backWorker.evaluate(() => {
const nativeApp = globalThis.runtime.lynx.getNativeApp();
return nativeApp.readScript('json');
});
await wait(100);
expect(jsonContent).toBe('{}');
});
test('registerDataProcessor-as-global-var-update', async ({ page, browserName }) => {
await goto(page);
const mainWorker = await getMainThreadWorker(page);
const registerDataProcessor = await mainWorker.evaluate(() => {

Check failure on line 228 in packages/web-platform/web-tests/tests/web-core.test.ts

View workflow job for this annotation

GitHub Actions / Playwright MULTI_THREAD-CSR (3/4) / check

[chromium] › tests/web-core.test.ts:225:3 › web core tests › registerDataProcessor-as-global-var-update

3) [chromium] › tests/web-core.test.ts:225:3 › web core tests › registerDataProcessor-as-global-var-update TypeError: Cannot read properties of undefined (reading 'evaluate') 226 | await goto(page); 227 | const mainWorker = await getMainThreadWorker(page); > 228 | const registerDataProcessor = await mainWorker.evaluate(() => { | ^ 229 | return globalThis.runtime.registerDataProcessor; 230 | }); 231 | expect(registerDataProcessor).toBe('pass'); at /__w/lynx-stack/lynx-stack/packages/web-platform/web-tests/tests/web-core.test.ts:228:52
return globalThis.runtime.registerDataProcessor;
});
expect(registerDataProcessor).toBe('pass');
Expand Down
Loading
Loading