mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 03:21:44 +03:00
20 lines
728 B
TypeScript
20 lines
728 B
TypeScript
|
/** @file Actions for the "set username" page. */
|
||
|
import * as actions from '../actions'
|
||
|
import BaseActions from './BaseActions'
|
||
|
import DrivePageActions from './DrivePageActions'
|
||
|
|
||
|
// ==============================
|
||
|
// === SetUsernamePageActions ===
|
||
|
// ==============================
|
||
|
|
||
|
/** Actions for the "set username" page. */
|
||
|
export default class SetUsernamePageActions extends BaseActions {
|
||
|
/** Set the userame for a new user that does not yet have a username. */
|
||
|
setUsername(username: string) {
|
||
|
return this.step(`Set username to '${username}'`, async (page) => {
|
||
|
await actions.locateUsernameInput(page).fill(username)
|
||
|
await actions.locateSetUsernameButton(page).click()
|
||
|
}).into(DrivePageActions)
|
||
|
}
|
||
|
}
|