mirror of
https://github.com/enso-org/enso.git
synced 2024-12-21 20:11:31 +03:00
1d0dfe17f8
- Potentially fixes https://github.com/enso-org/enso/issues/10667 - Potentially fixes a similar issue with labels test failiing # Important Notes None
26 lines
882 B
TypeScript
26 lines
882 B
TypeScript
/** @file Test the login flow. */
|
|
import * as test from '@playwright/test'
|
|
|
|
import * as actions from './actions'
|
|
|
|
test.test('page switcher', ({ page }) =>
|
|
actions
|
|
.mockAllAndLogin({ page })
|
|
// Create a new project so that the editor page can be switched to.
|
|
.newEmptyProject()
|
|
.do(async (thePage) => {
|
|
await test.expect(actions.locateDriveView(thePage)).not.toBeVisible()
|
|
await test.expect(actions.locateEditor(thePage)).toBeVisible()
|
|
})
|
|
.goToPage.drive()
|
|
.do(async (thePage) => {
|
|
await test.expect(actions.locateDriveView(thePage)).toBeVisible()
|
|
await test.expect(actions.locateEditor(thePage)).not.toBeVisible()
|
|
})
|
|
.goToPage.editor()
|
|
.do(async (thePage) => {
|
|
await test.expect(actions.locateDriveView(thePage)).not.toBeVisible()
|
|
await test.expect(actions.locateEditor(thePage)).toBeVisible()
|
|
}),
|
|
)
|