2024-09-27 10:05:10 +03:00
|
|
|
/** @file Actions for the fourth step of the "setup" page. */
|
2024-10-11 21:23:02 +03:00
|
|
|
import { TEXT } from '.'
|
2024-09-27 10:05:10 +03:00
|
|
|
import BaseActions from './BaseActions'
|
|
|
|
import DrivePageActions from './DrivePageActions'
|
|
|
|
|
|
|
|
/** Actions for the fourth step of the "setup" page. */
|
2024-12-12 12:49:58 +03:00
|
|
|
export default class SetupDonePageActions<Context> extends BaseActions<Context> {
|
2024-09-27 10:05:10 +03:00
|
|
|
/** Go to the drive page. */
|
|
|
|
get goToPage() {
|
|
|
|
return {
|
|
|
|
drive: () =>
|
|
|
|
this.step("Finish setup and go to 'drive' page", async (page) => {
|
|
|
|
await page.getByText(TEXT.goToDashboard).click()
|
2024-12-12 12:49:58 +03:00
|
|
|
}).into(DrivePageActions<Context>),
|
2024-09-27 10:05:10 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|