WIP: Desktop app shows bad network until a project is opened

Fixes #26103
This commit is contained in:
Pierre Jacquier
2024-06-16 09:16:41 -04:00
parent 9f3b5d09d9
commit 1d8b75e902
2 changed files with 14 additions and 3 deletions

View File

@ -69,6 +69,14 @@ describe('ZMA (Tauri)', () => {
expect(await newFileButton.getText()).toEqual('New project')
})
it('checks the network indicator status', async () => {
const toggle = await $('[data-testid="network-toggle"]')
await click(toggle)
const status = await $('[data-testid="network"]')
expect(await status.getText()).toEqual('CONNECTED')
await click(toggle)
})
it('opens the settings page, checks filesystem settings, and closes the settings page', async () => {
const menuButton = await $('[data-testid="user-sidebar-toggle"]')
await click(menuButton)

View File

@ -123,9 +123,12 @@ const router = createBrowserRouter([
path: paths.HOME,
element: (
<Auth>
<Outlet />
<Home />
<CommandBar />
<ModelingMachineProvider>
<Outlet />
<Home />
<CommandBar />
</ModelingMachineProvider>
<WasmErrBanner />
</Auth>
),
id: paths.HOME,