enso/app/dashboard/e2e/actions/SetupOrganizationPageActions.ts
somebody1234 f0d02de5c8
E2E tests for setup flow (#11148)
- 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
2024-09-27 07:05:10 +00:00

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)
}
}