mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 21:01:37 +03:00
21 lines
740 B
TypeScript
21 lines
740 B
TypeScript
|
/** @file Test the "change password" modal. */
|
||
|
import * as test from '@playwright/test'
|
||
|
|
||
|
import * as actions from './actions'
|
||
|
|
||
|
test.test.beforeEach(actions.mockAllAndLogin)
|
||
|
|
||
|
test.test('create empty project', async ({ page }) => {
|
||
|
await actions.locateHomePageIcon(page).click()
|
||
|
// The first "sample" is a button to create a new empty project.
|
||
|
await actions.locateSamples(page).nth(0).click()
|
||
|
await test.expect(actions.locateEditor(page)).toBeVisible()
|
||
|
})
|
||
|
|
||
|
test.test('create project from template', async ({ page }) => {
|
||
|
await actions.locateHomePageIcon(page).click()
|
||
|
// The second "sample" is the first template.
|
||
|
await actions.locateSamples(page).nth(1).click()
|
||
|
await test.expect(actions.locateEditor(page)).toBeVisible()
|
||
|
})
|