Fix tauri tests in build-test-apps (#1328)

This commit is contained in:
Pierre Jacquier
2024-01-27 02:59:43 -05:00
committed by GitHub
parent 390cb2d51d
commit dcbe5d7f75

View File

@ -86,13 +86,11 @@ describe('ZMA (Tauri, Linux)', () => {
expect(await homeSection.getText()).toContain('project-000') expect(await homeSection.getText()).toContain('project-000')
}) })
it('opens the new file and expects an error on Linux', async () => { it('opens the new file and expects a loading stream', async () => {
const projectLink = await $('[data-testid="project-link"]') const projectLink = await $('[data-testid="project-link"]')
await click(projectLink) await click(projectLink)
const error = await $('h3') const loadingText = await $('[data-testid="loading-stream"]')
expect(await error.getText()).toContain( expect(await loadingText.getText()).toContain('Loading stream...')
"Can't find variable: RTCPeerConnection"
)
await browser.execute('window.location.href = "tauri://localhost/home"') await browser.execute('window.location.href = "tauri://localhost/home"')
}) })