Skip to content
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

Merged
merged 3 commits into from
Nov 29, 2023
Merged

test exports #1139

merged 3 commits into from
Nov 29, 2023

Conversation

Irev-Dev
Copy link
Collaborator

@Irev-Dev Irev-Dev commented Nov 28, 2023

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.

Copy link

vercel bot commented Nov 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Nov 29, 2023 0:05am

Comment on lines +265 to +287
// 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',
// })
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jessfraz, not sure who else to ping,

looks like this has already caught some bugs. stl and ply exports fail and is reproducible outside of playwright.

I created #1140

if (
supportsFileSystemAccess &&
window.showSaveFilePicker &&
!(window as any).playwrightSkipFilePicker
Copy link
Collaborator Author

@Irev-Dev Irev-Dev Nov 28, 2023

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.

@Irev-Dev Irev-Dev marked this pull request as ready for review November 28, 2023 23:57
@Irev-Dev Irev-Dev self-assigned this Nov 28, 2023
// FYI this test doesn't work with only engine running locally
const u = getUtils(page)
await context.addInitScript(async () => {
;(window as any).playwrightSkipFilePicker = true
Copy link
Collaborator Author

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.

@Irev-Dev Irev-Dev mentioned this pull request Nov 29, 2023
35 tasks
@Irev-Dev Irev-Dev merged commit 7c11b7b into main Nov 29, 2023
12 checks passed
@Irev-Dev Irev-Dev deleted the kurt-export-tests branch November 29, 2023 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant