Skip to content

Commit

Permalink
Fix last step of smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiM committed Apr 25, 2023
1 parent bed0d64 commit 99b98f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/e2e-tests/smoke.crossplatform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('Smoke', () => {
const backendBundlePath = path.normalize(require.resolve('backend-bundle'))
console.log('Spawning backend', backendBundlePath, 'with argvs:', forkArgvs)
fork(backendBundlePath, forkArgvs)
await app.close()
await app.close({ forceSaveState: true })
})

it('Opens app again', async () => {
Expand All @@ -128,10 +128,10 @@ describe('Smoke', () => {
expect(isLoadingPanel).toBeTruthy()
})

it('User sees "join community" page', async () => {
const joinModal = new JoinCommunityModal(app.driver)
const isJoinModal = await joinModal.element.isDisplayed()
expect(isJoinModal).toBeTruthy()
it('User sees "general channel" page', async () => {
const generalChannel = new Channel(app.driver, 'general')
const isGeneralChannel = await generalChannel.element.isDisplayed()
expect(isGeneralChannel).toBeTruthy()
})
})
})

0 comments on commit 99b98f3

Please sign in to comment.