chore: roll stable test runner to 1.43.0-beta-1712217576000 (#30250)

Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
This commit is contained in:
Dmitry Gozman 2024-04-04 11:26:03 -07:00 committed by GitHub
parent d5907f4b13
commit 5d810f1e07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 41 additions and 41 deletions

View File

@ -113,49 +113,49 @@ test('should generate separate actual results for repeating names', async ({ run
const outputText = result.output;
const attachments = outputText.split('\n').filter(l => l.startsWith('## ')).map(l => l.substring(3)).map(l => JSON.parse(l))[0];
for (const attachment of attachments) {
attachment.path = attachment.path.replace(/\\/g, '/').replace(/.*test-results\//, '');
attachment.path = attachment.path.replace(testInfo.outputDir, '').substring(1).replace(/\\/g, '/');
attachment.name = attachment.name.replace(/\\/g, '/');
}
expect(attachments).toEqual([
{
'name': 'foo-expected.txt',
'contentType': 'text/plain',
'path': 'golden-should-generate-separate-actual-results-for-repeating-names-playwright-test/a.spec.js-snapshots/foo.txt'
'path': 'a.spec.js-snapshots/foo.txt'
},
{
'name': 'foo-actual.txt',
'contentType': 'text/plain',
'path': 'a-is-a-test/foo-actual.txt'
'path': 'test-results/a-is-a-test/foo-actual.txt'
},
{
'name': 'foo-1-expected.txt',
'contentType': 'text/plain',
'path': 'golden-should-generate-separate-actual-results-for-repeating-names-playwright-test/a.spec.js-snapshots/foo.txt'
'path': 'a.spec.js-snapshots/foo.txt'
},
{
'name': 'foo-1-actual.txt',
'contentType': 'text/plain',
'path': 'a-is-a-test/foo-1-actual.txt'
'path': 'test-results/a-is-a-test/foo-1-actual.txt'
},
{
'name': 'bar/baz-expected.txt',
'contentType': 'text/plain',
'path': 'golden-should-generate-separate-actual-results-for-repeating-names-playwright-test/a.spec.js-snapshots/bar/baz.txt'
'path': 'a.spec.js-snapshots/bar/baz.txt'
},
{
'name': 'bar/baz-actual.txt',
'contentType': 'text/plain',
'path': 'a-is-a-test/bar-baz-actual.txt'
'path': 'test-results/a-is-a-test/bar-baz-actual.txt'
},
{
'name': 'bar/baz-1-expected.txt',
'contentType': 'text/plain',
'path': 'golden-should-generate-separate-actual-results-for-repeating-names-playwright-test/a.spec.js-snapshots/bar/baz.txt'
'path': 'a.spec.js-snapshots/bar/baz.txt'
},
{
'name': 'bar/baz-1-actual.txt',
'contentType': 'text/plain',
'path': 'a-is-a-test/bar-baz-1-actual.txt'
'path': 'test-results/a-is-a-test/bar-baz-1-actual.txt'
}
]);
});
@ -1047,22 +1047,22 @@ test('should attach expected/actual/diff for different sizes', async ({ runInlin
expect(outputText).toContain('4 pixels (ratio 1.00 of all image pixels) are different.');
const attachments = outputText.split('\n').filter(l => l.startsWith('## ')).map(l => l.substring(3)).map(l => JSON.parse(l))[0];
for (const attachment of attachments)
attachment.path = attachment.path.replace(/\\/g, '/').replace(/.*test-results\//, '');
attachment.path = attachment.path.replace(testInfo.outputDir, '').substring(1).replace(/\\/g, '/');
expect(attachments).toEqual([
{
name: 'snapshot-expected.png',
contentType: 'image/png',
path: 'golden-should-attach-expected-actual-diff-for-different-sizes-playwright-test/a.spec.js-snapshots/snapshot.png'
path: 'a.spec.js-snapshots/snapshot.png'
},
{
name: 'snapshot-actual.png',
contentType: 'image/png',
path: 'a-is-a-test/snapshot-actual.png'
path: 'test-results/a-is-a-test/snapshot-actual.png'
},
{
name: 'snapshot-diff.png',
contentType: 'image/png',
path: 'a-is-a-test/snapshot-diff.png'
path: 'test-results/a-is-a-test/snapshot-diff.png'
},
]);
});

View File

@ -5,15 +5,15 @@
"packages": {
"": {
"dependencies": {
"@playwright/test": "1.42.0-beta-1708998235000"
"@playwright/test": "1.43.0-beta-1712217576000"
}
},
"node_modules/@playwright/test": {
"version": "1.42.0-beta-1708998235000",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.42.0-beta-1708998235000.tgz",
"integrity": "sha512-tPONSh/yGC9dApTJ/aSQ83lqqk0kV6mdlIpJYpmh5LWHyZnl2EcwAqLeNF6GxU2r4aIOMaZPzkEE+WPw/isxWw==",
"version": "1.43.0-beta-1712217576000",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.43.0-beta-1712217576000.tgz",
"integrity": "sha512-Wyuphrx65J+kB5Rb8AbuieFCW0VC0pCPkti/7czZpPV9zNFWS19lqBaWMuxJ7ce2KktozdS+KsUiRoLreu9thQ==",
"dependencies": {
"playwright": "1.42.0-beta-1708998235000"
"playwright": "1.43.0-beta-1712217576000"
},
"bin": {
"playwright": "cli.js"
@ -36,11 +36,11 @@
}
},
"node_modules/playwright": {
"version": "1.42.0-beta-1708998235000",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1708998235000.tgz",
"integrity": "sha512-Iq85EGhAz0URDVtl9vKDVE0FjvEvPVs/46C/jWR5JpaI9tEsuXYoA1i1f5xA74ZhatskHigpuJYbm2YpwO3mIw==",
"version": "1.43.0-beta-1712217576000",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.43.0-beta-1712217576000.tgz",
"integrity": "sha512-h+qlR5tSmxiEGS9PosulDB99IwTj2v/PEIk07Bb3m685I53YdcTNh/mBebgIgl7IIGU0gMUfH5WdQtCroCUAVA==",
"dependencies": {
"playwright-core": "1.42.0-beta-1708998235000"
"playwright-core": "1.43.0-beta-1712217576000"
},
"bin": {
"playwright": "cli.js"
@ -53,9 +53,9 @@
}
},
"node_modules/playwright-core": {
"version": "1.42.0-beta-1708998235000",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.42.0-beta-1708998235000.tgz",
"integrity": "sha512-kgr9rFXjX1pakRqXWwUIPlPMOdaUVHDu7vuGSryQOfoIld6CQI39vGkpb6rFiRwU3gpK4nL/UtXTqoxcMff3DA==",
"version": "1.43.0-beta-1712217576000",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.43.0-beta-1712217576000.tgz",
"integrity": "sha512-SP/cfE8MyAS8sZih/MDeOoCYbWiIcB/rXH0urzWx1tMXJK/YQeH/s9CKmMpoT5TK0oXtDlq6CBpxwOEn2t+tXw==",
"bin": {
"playwright-core": "cli.js"
},
@ -66,11 +66,11 @@
},
"dependencies": {
"@playwright/test": {
"version": "1.42.0-beta-1708998235000",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.42.0-beta-1708998235000.tgz",
"integrity": "sha512-tPONSh/yGC9dApTJ/aSQ83lqqk0kV6mdlIpJYpmh5LWHyZnl2EcwAqLeNF6GxU2r4aIOMaZPzkEE+WPw/isxWw==",
"version": "1.43.0-beta-1712217576000",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.43.0-beta-1712217576000.tgz",
"integrity": "sha512-Wyuphrx65J+kB5Rb8AbuieFCW0VC0pCPkti/7czZpPV9zNFWS19lqBaWMuxJ7ce2KktozdS+KsUiRoLreu9thQ==",
"requires": {
"playwright": "1.42.0-beta-1708998235000"
"playwright": "1.43.0-beta-1712217576000"
}
},
"fsevents": {
@ -80,18 +80,18 @@
"optional": true
},
"playwright": {
"version": "1.42.0-beta-1708998235000",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1708998235000.tgz",
"integrity": "sha512-Iq85EGhAz0URDVtl9vKDVE0FjvEvPVs/46C/jWR5JpaI9tEsuXYoA1i1f5xA74ZhatskHigpuJYbm2YpwO3mIw==",
"version": "1.43.0-beta-1712217576000",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.43.0-beta-1712217576000.tgz",
"integrity": "sha512-h+qlR5tSmxiEGS9PosulDB99IwTj2v/PEIk07Bb3m685I53YdcTNh/mBebgIgl7IIGU0gMUfH5WdQtCroCUAVA==",
"requires": {
"fsevents": "2.3.2",
"playwright-core": "1.42.0-beta-1708998235000"
"playwright-core": "1.43.0-beta-1712217576000"
}
},
"playwright-core": {
"version": "1.42.0-beta-1708998235000",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.42.0-beta-1708998235000.tgz",
"integrity": "sha512-kgr9rFXjX1pakRqXWwUIPlPMOdaUVHDu7vuGSryQOfoIld6CQI39vGkpb6rFiRwU3gpK4nL/UtXTqoxcMff3DA=="
"version": "1.43.0-beta-1712217576000",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.43.0-beta-1712217576000.tgz",
"integrity": "sha512-SP/cfE8MyAS8sZih/MDeOoCYbWiIcB/rXH0urzWx1tMXJK/YQeH/s9CKmMpoT5TK0oXtDlq6CBpxwOEn2t+tXw=="
}
}
}

View File

@ -1,6 +1,6 @@
{
"private": true,
"dependencies": {
"@playwright/test": "1.42.0-beta-1708998235000"
"@playwright/test": "1.43.0-beta-1712217576000"
}
}

View File

@ -1086,22 +1086,22 @@ test('should attach expected/actual/diff when sizes are different', async ({ run
expect(outputText).toContain('4 pixels (ratio 0.01 of all image pixels) are different.');
const attachments = outputText.split('\n').filter(l => l.startsWith('## ')).map(l => l.substring(3)).map(l => JSON.parse(l))[0];
for (const attachment of attachments)
attachment.path = attachment.path.replace(/\\/g, '/').replace(/.*test-results\//, '');
attachment.path = attachment.path.replace(testInfo.outputDir, '').substring(1).replace(/\\/g, '/');
expect(attachments).toEqual([
{
name: 'snapshot-expected.png',
contentType: 'image/png',
path: 'to-have-screenshot-should-attach-expected-actual-diff-when-sizes-are-different-playwright-test/__screenshots__/a.spec.js/snapshot.png',
path: '__screenshots__/a.spec.js/snapshot.png',
},
{
name: 'snapshot-actual.png',
contentType: 'image/png',
path: 'a-is-a-test/snapshot-actual.png'
path: 'test-results/a-is-a-test/snapshot-actual.png'
},
{
name: 'snapshot-diff.png',
contentType: 'image/png',
path: 'a-is-a-test/snapshot-diff.png'
path: 'test-results/a-is-a-test/snapshot-diff.png'
},
]);
});