Add E2E test for importing file from URL

This commit is contained in:
Frank Noirot
2025-01-10 15:08:56 -05:00
parent ebc6b6460d
commit e417e60053
6 changed files with 68 additions and 6 deletions

View File

@ -1,5 +1,9 @@
import { UnitLength_type } from '@kittycad/lib/dist/types/src/models'
import { ASK_TO_OPEN_QUERY_PARAM, CREATE_FILE_URL_PARAM, PROD_APP_URL } from './constants'
import {
ASK_TO_OPEN_QUERY_PARAM,
CREATE_FILE_URL_PARAM,
PROD_APP_URL,
} from './constants'
import { stringToBase64 } from './base64'
import { DEV } from 'env'
export interface FileLinkParams {
@ -11,8 +15,8 @@ export interface FileLinkParams {
/**
* Creates a URL with the necessary query parameters to trigger
* the "Import file from URL" command in the app.
*
* With the additional step of asking the user if they want to
*
* With the additional step of asking the user if they want to
* open the URL in the desktop app.
*/
export function createCreateFileUrl({ code, name, units }: FileLinkParams) {