-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: update playwright config #681
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -51,19 +51,18 @@ describe('test/common/adapter/binary/PlaywrightBinary.test.ts', () => { | |||||||||||||||||||||
let result = await binary.fetch('/builds/'); | ||||||||||||||||||||||
assert(result); | ||||||||||||||||||||||
// console.log(result.items); | ||||||||||||||||||||||
assert.equal(result.items.length, 8); | ||||||||||||||||||||||
assert.equal(result.items.length, 7); | ||||||||||||||||||||||
assert.equal(result.items[0].name, 'chromium/'); | ||||||||||||||||||||||
assert.equal(result.items[1].name, 'chromium-tip-of-tree/'); | ||||||||||||||||||||||
assert.equal(result.items[2].name, 'chromium-with-symbols/'); | ||||||||||||||||||||||
assert.equal(result.items[3].name, 'firefox/'); | ||||||||||||||||||||||
assert.equal(result.items[4].name, 'firefox-beta/'); | ||||||||||||||||||||||
assert.equal(result.items[5].name, 'webkit/'); | ||||||||||||||||||||||
assert.equal(result.items[6].name, 'ffmpeg/'); | ||||||||||||||||||||||
assert.equal(result.items[7].name, 'android/'); | ||||||||||||||||||||||
assert.equal(result.items[2].name, 'firefox/'); | ||||||||||||||||||||||
assert.equal(result.items[3].name, 'firefox-beta/'); | ||||||||||||||||||||||
assert.equal(result.items[4].name, 'webkit/'); | ||||||||||||||||||||||
assert.equal(result.items[5].name, 'ffmpeg/'); | ||||||||||||||||||||||
assert.equal(result.items[6].name, 'android/'); | ||||||||||||||||||||||
Comment on lines
+57
to
+61
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update the expected item names and their order. The expected item names and their order should be updated to reflect the removal of - assert.equal(result.items[0].name, 'chromium/');
- assert.equal(result.items[1].name, 'chromium-tip-of-tree/');
- assert.equal(result.items[2].name, 'firefox/');
- assert.equal(result.items[3].name, 'firefox-beta/');
- assert.equal(result.items[4].name, 'webkit/');
- assert.equal(result.items[5].name, 'ffmpeg/');
- assert.equal(result.items[6].name, 'android/');
+ assert.equal(result.items[0].name, 'firefox/');
+ assert.equal(result.items[1].name, 'firefox-beta/');
+ assert.equal(result.items[2].name, 'webkit/');
+ assert.equal(result.items[3].name, 'ffmpeg/');
+ assert.equal(result.items[4].name, 'android/'); Committable suggestion
Suggested change
|
||||||||||||||||||||||
assert.equal(result.items[0].isDir, true); | ||||||||||||||||||||||
|
||||||||||||||||||||||
const names = [ | ||||||||||||||||||||||
'chromium', 'chromium-tip-of-tree', 'chromium-with-symbols', 'firefox', 'firefox-beta', | ||||||||||||||||||||||
'chromium', 'chromium-tip-of-tree', 'firefox', 'firefox-beta', | ||||||||||||||||||||||
'webkit', 'ffmpeg', | ||||||||||||||||||||||
]; | ||||||||||||||||||||||
for (const dirname of names) { | ||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the expected length of
result.items
.The expected length of
result.items
should be updated to 6 instead of 7, as thechromium-with-symbols
configuration has been removed.Committable suggestion