Test attempt number 15345203, action!
This commit is contained in:
@ -2266,15 +2266,20 @@ test.describe('Native file menu', { tag: ['@electron'] }, () => {
|
|||||||
|
|
||||||
// Run electron snippet to find the Menu!
|
// Run electron snippet to find the Menu!
|
||||||
await page.waitForTimeout(100) // wait for createModelingPageMenu() to run
|
await page.waitForTimeout(100) // wait for createModelingPageMenu() to run
|
||||||
await expect.poll(async () => await tronApp.electron.evaluate(async ({ app }) => {
|
await expect
|
||||||
if (!app || !app.applicationMenu) return false
|
.poll(
|
||||||
const menu = app.applicationMenu.getMenuItemById(
|
async () =>
|
||||||
'Help.Refresh and report a bug'
|
await tronApp.electron.evaluate(async ({ app }) => {
|
||||||
|
if (!app || !app.applicationMenu) return false
|
||||||
|
const menu = app.applicationMenu.getMenuItemById(
|
||||||
|
'Help.Refresh and report a bug'
|
||||||
|
)
|
||||||
|
if (!menu) return false
|
||||||
|
menu.click()
|
||||||
|
return true
|
||||||
|
})
|
||||||
)
|
)
|
||||||
if (!menu) return false
|
.toBe(true)
|
||||||
menu.click()
|
|
||||||
return true
|
|
||||||
})).toBe(true)
|
|
||||||
// Core dump and refresh magic number timeout
|
// Core dump and refresh magic number timeout
|
||||||
await scene.connectionEstablished()
|
await scene.connectionEstablished()
|
||||||
await expect(toolbar.startSketchBtn).toBeVisible()
|
await expect(toolbar.startSketchBtn).toBeVisible()
|
||||||
|
|||||||
@ -5,7 +5,12 @@ import { getUtils, orRunWhenFullSuiteEnabled } from '@e2e/playwright/test-utils'
|
|||||||
import { expect, test } from '@e2e/playwright/zoo-test'
|
import { expect, test } from '@e2e/playwright/zoo-test'
|
||||||
|
|
||||||
test.describe('Testing Camera Movement', { tag: ['@skipWin'] }, () => {
|
test.describe('Testing Camera Movement', { tag: ['@skipWin'] }, () => {
|
||||||
test('Can move camera reliably', async ({ page, context, homePage, scene }) => {
|
test('Can move camera reliably', async ({
|
||||||
|
page,
|
||||||
|
context,
|
||||||
|
homePage,
|
||||||
|
scene,
|
||||||
|
}) => {
|
||||||
const u = await getUtils(page)
|
const u = await getUtils(page)
|
||||||
await page.setBodyDimensions({ width: 1200, height: 500 })
|
await page.setBodyDimensions({ width: 1200, height: 500 })
|
||||||
|
|
||||||
|
|||||||
@ -141,11 +141,14 @@ test.describe('Testing in-app sample loading', () => {
|
|||||||
|
|
||||||
await test.step(`Load a KCL sample with the command palette`, async () => {
|
await test.step(`Load a KCL sample with the command palette`, async () => {
|
||||||
await commandBarButton.click()
|
await commandBarButton.click()
|
||||||
|
await page.waitForTimeout(1000)
|
||||||
await commandOption.click()
|
await commandOption.click()
|
||||||
|
await page.waitForTimeout(1000)
|
||||||
await commandSampleOption(sampleOne.title).click()
|
await commandSampleOption(sampleOne.title).click()
|
||||||
await expect(overwriteWarning).not.toBeVisible()
|
await expect(overwriteWarning).not.toBeVisible()
|
||||||
await expect(newFileWarning).toBeVisible()
|
await expect(newFileWarning).toBeVisible()
|
||||||
await confirmButton.click()
|
await confirmButton.click()
|
||||||
|
await page.waitForTimeout(1000)
|
||||||
})
|
})
|
||||||
|
|
||||||
await test.step(`Ensure we made and opened a new file`, async () => {
|
await test.step(`Ensure we made and opened a new file`, async () => {
|
||||||
@ -156,14 +159,20 @@ test.describe('Testing in-app sample loading', () => {
|
|||||||
|
|
||||||
await test.step(`Now overwrite the current file`, async () => {
|
await test.step(`Now overwrite the current file`, async () => {
|
||||||
await commandBarButton.click()
|
await commandBarButton.click()
|
||||||
|
await page.waitForTimeout(1000)
|
||||||
await commandOption.click()
|
await commandOption.click()
|
||||||
|
await page.waitForTimeout(1000)
|
||||||
await commandSampleOption(sampleTwo.title).click()
|
await commandSampleOption(sampleTwo.title).click()
|
||||||
|
await page.waitForTimeout(1000)
|
||||||
await commandMethodArgButton.click()
|
await commandMethodArgButton.click()
|
||||||
|
await page.waitForTimeout(1000)
|
||||||
await commandMethodOption.click()
|
await commandMethodOption.click()
|
||||||
|
await page.waitForTimeout(1000)
|
||||||
await expect(commandMethodArgButton).toContainText('overwrite')
|
await expect(commandMethodArgButton).toContainText('overwrite')
|
||||||
await expect(newFileWarning).not.toBeVisible()
|
await expect(newFileWarning).not.toBeVisible()
|
||||||
await expect(overwriteWarning).toBeVisible()
|
await expect(overwriteWarning).toBeVisible()
|
||||||
await confirmButton.click()
|
await confirmButton.click()
|
||||||
|
await page.waitForTimeout(1000)
|
||||||
})
|
})
|
||||||
|
|
||||||
await test.step(`Ensure we overwrote the current file without navigating`, async () => {
|
await test.step(`Ensure we overwrote the current file without navigating`, async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user