Get sketch-tests.spec.ts passing in electron

This commit is contained in:
49lf
2024-11-20 08:29:29 -05:00
parent b3112025b9
commit 804124b07f
9 changed files with 184 additions and 103 deletions

View File

@ -0,0 +1,12 @@
// These tests are meant to simply test starting and stopping the electron
// application, check it can make it to the project pane, and nothing more.
// It also tests our test wrappers are working.
// Additionally this serves as a nice minimal example.
import { test as testZoo, expect } from './fixtures/fixtureSetup'
testZoo.describe('Open the application', () => {
testZoo('see the project view', async ({ tronApp: { page, context } }) => {
await expect(page.getByTestId('home-section')).toBeVisible()
})
})