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
803 B
TypeScript
23 lines
803 B
TypeScript
/** @file Actions for the "setup" page. */
|
|
import { TEXT } from '../actions'
|
|
import BaseActions from './BaseActions'
|
|
import SetupDonePageActions from './SetupDonePageActions'
|
|
|
|
// ================================
|
|
// === SetupTeamNamePageActions ===
|
|
// ================================
|
|
|
|
/** Actions for the "setup team name" page. */
|
|
export default class SetupTeamNamePagePageActions extends BaseActions {
|
|
/** Set the username for a new user that does not yet have a username. */
|
|
setTeamName(teamName: string) {
|
|
return this.step(`Set team name to '${teamName}'`, async (page) => {
|
|
await page
|
|
.getByLabel(TEXT.groupNameSettingsInput)
|
|
.and(page.getByRole('textbox'))
|
|
.fill(teamName)
|
|
await page.getByText(TEXT.next).click()
|
|
}).into(SetupDonePageActions)
|
|
}
|
|
}
|