-
Notifications
You must be signed in to change notification settings - Fork 45
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
test exports #1139
test exports #1139
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
// the following exports are failing | ||
// await doExport({ | ||
// type: 'ply', | ||
// storage: 'ascii', | ||
// coords: sysType, | ||
// }) | ||
// await doExport({ | ||
// type: 'ply', | ||
// storage: 'binary' as unknown as 'binary_little_endian', | ||
// coords: sysType, | ||
// }) | ||
// await doExport({ | ||
// type: 'stl', | ||
// storage: 'ascii', | ||
// coords: sysType, | ||
// units: 'in', | ||
// }) | ||
// await doExport({ | ||
// type: 'stl', | ||
// storage: 'binary', | ||
// coords: sysType, | ||
// units: 'in', | ||
// }) |
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.
if ( | ||
supportsFileSystemAccess && | ||
window.showSaveFilePicker && | ||
!(window as any).playwrightSkipFilePicker |
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.
This is a bit of a hack for sure, but I can't test the exports without skipping the file picker since that's OS stuff and outside of playwright control.
// FYI this test doesn't work with only engine running locally | ||
const u = getUtils(page) | ||
await context.addInitScript(async () => { | ||
;(window as any).playwrightSkipFilePicker = true |
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.
Other half of the playwrightSkipFilePicker
hack.
Related to #833
Tests have been put into the snapshot test suite because like images, it commits the export outputs, so if see a step,gltf,etc diff in a PR, double check it was intentional.