mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 06:41:42 +03:00
f0d02de5c8
- Add E2E tests for setup flow - Remove `styled.Checkbox` in favor of `ariaComponents.Checkbox` - Remove `styled.Input` in favor of `ariaComponents.Input` - Remove `styled.Button` in favor of `ariaComponents.Button` - Rename unnecessary `Settings` prefix from components in `Settings/` # Important Notes None
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)
|
|
}
|
|
}
|