fix: finally found the right helper function, don't know why this is a toolbar, it is not a toolbar

This commit is contained in:
Kevin
2025-06-25 12:44:37 -05:00
parent 327bcfaad8
commit ee44a4f0f6
3 changed files with 8 additions and 26 deletions

View File

@ -11,7 +11,7 @@ import { expect, test } from '@e2e/playwright/zoo-test'
test(
'export works on the first try',
{ tag: ['@desktop', '@macos', '@windows', '@skipLocalEngine'] },
async ({ page, context, scene, tronApp, cmdBar }, testInfo) => {
async ({ page, context, scene, tronApp, cmdBar, toolbar}, testInfo) => {
if (!tronApp) {
fail()
}
@ -95,8 +95,7 @@ test(
await u.openFilePanel()
// Click on the other file
const otherKclButton = scene.getFileRowFromExplorer('other.kcl')
await otherKclButton.click()
await toolbar.openFile('other.kcl')
// Close the file pane
await u.closeFilePanel()