Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions e2e/playwright/desktop-export.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,24 @@ test(
await expect(projectName).toBeVisible()
await projectName.click()
await scene.settled(cmdBar)
await page.waitForTimeout(1_000) // wait for panel buttons to be available

// Expect zero errors in gutter
await expect(page.locator('.cm-lint-marker-error')).not.toBeVisible()

// Click the export button
const exportButton = page.getByTestId('export-pane-button')
await expect(exportButton).toBeVisible()

await exportButton.click()
await page.waitForTimeout(1_000) // wait for export options to be available

// Select the first format option
const gltfOption = page.getByText('glTF')
const gltfOption = cmdBar.selectOption({ name: 'glTF' })
const exportFileName = `main.gltf` // source file is named `main.kcl`
await expect(gltfOption).toBeVisible()
await page.keyboard.press('Enter')

// Click the checkbox
const submitButton = page.getByText('Confirm Export')
await expect(submitButton).toBeVisible()
await page.waitForTimeout(500)
await page.keyboard.press('Enter')

// Look out for the toast message
Expand Down Expand Up @@ -113,25 +109,23 @@ test(
await u.closeFilePanel()
await scene.settled(cmdBar)

// expect zero errors in guter
// Expect zero errors in gutter
await expect(page.locator('.cm-lint-marker-error')).not.toBeVisible()

// Click the export button
const exportButton = page.getByTestId('export-pane-button')
await expect(exportButton).toBeVisible()
await exportButton.click()
await page.waitForTimeout(1_000) // wait for export options to be available

// Select the first format option
const gltfOption = page.getByText('glTF')
const gltfOption = cmdBar.selectOption({ name: 'glTF' })
const exportFileName = `other.gltf` // source file is named `other.kcl`
await expect(gltfOption).toBeVisible()
await page.keyboard.press('Enter')

// Click the checkbox
const submitButton = page.getByText('Confirm Export')
await expect(submitButton).toBeVisible()
await page.waitForTimeout(500)
await page.keyboard.press('Enter')

// Look out for the toast message
Expand Down
Loading