mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 17:41:53 +03:00
b83c5a15eb
- Close https://github.com/enso-org/cloud-v2/issues/1604 - Add ability to track backend calls - Remove inconsistent integration test code - Add skeleton classes for settings pages # Important Notes None
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
/** @file Test the "change password" modal. */
|
|
import { expect, test, type Page } from '@playwright/test'
|
|
|
|
import { mockAllAndLogin } from './actions'
|
|
|
|
/** Find an editor container. */
|
|
function locateEditor(page: Page) {
|
|
// Test ID of a placeholder editor component used during testing.
|
|
return page.locator('.App')
|
|
}
|
|
|
|
/** Find a samples list. */
|
|
function locateSamplesList(page: Page) {
|
|
// This has no identifying features.
|
|
return page.getByTestId('samples')
|
|
}
|
|
|
|
/** Find all samples list. */
|
|
function locateSamples(page: Page) {
|
|
// This has no identifying features.
|
|
return locateSamplesList(page).getByRole('button')
|
|
}
|
|
|
|
// FIXME[sb]: https://github.com/enso-org/cloud-v2/issues/1615
|
|
// Unskip once cloud execution in the browser is re-enabled.
|
|
|
|
test.skip('create project from template', ({ page }) =>
|
|
mockAllAndLogin({ page })
|
|
.expectStartModal()
|
|
.createProjectFromTemplate(0)
|
|
.do(async (thePage) => {
|
|
await expect(locateEditor(thePage)).toBeAttached()
|
|
await expect(locateSamples(page).first()).not.toBeVisible()
|
|
}))
|