mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 13:21:35 +03:00
23 lines
876 B
TypeScript
23 lines
876 B
TypeScript
|
/** @file Actions for the third step of the "setup" page. */
|
||
|
import { TEXT } from '../actions'
|
||
|
import BaseActions from './BaseActions'
|
||
|
import SetupInvitePageActions from './SetupInvitePageActions'
|
||
|
|
||
|
// ====================================
|
||
|
// === SetupOrganizationPageActions ===
|
||
|
// ====================================
|
||
|
|
||
|
/** Actions for the third step of the "setup" page. */
|
||
|
export default class SetupOrganizationPageActions extends BaseActions {
|
||
|
/** Set the organization name for this organization. */
|
||
|
setOrganizationName(organizationName: string) {
|
||
|
return this.step(`Set organization name to '${organizationName}'`, async (page) => {
|
||
|
await page
|
||
|
.getByLabel(TEXT.organizationNameSettingsInput)
|
||
|
.and(page.getByRole('textbox'))
|
||
|
.fill(organizationName)
|
||
|
await page.getByText(TEXT.next).click()
|
||
|
}).into(SetupInvitePageActions)
|
||
|
}
|
||
|
}
|