mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-09 03:32:56 +00:00

--------- Co-authored-by: Joep <jcbuhre@gmail.com> Co-authored-by: Omar Hussein <omarmohammad1951@gmail.com> Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
21 lines
597 B
TypeScript
21 lines
597 B
TypeScript
//classes: Vue-Toastification__toast Vue-Toastification__toast--success bottom-center
|
|
import { type Page, type Locator, expect } from "@playwright/test";
|
|
|
|
export class Toast {
|
|
private readonly success: Locator;
|
|
private readonly error: Locator;
|
|
|
|
constructor(public readonly page: Page) {
|
|
this.success = this.page.locator("div.Vue-Toastification__toast--success");
|
|
this.error = this.page.locator("div.Vue-Toastification__toast--error");
|
|
}
|
|
|
|
async isSuccess() {
|
|
await expect(this.success).toBeVisible();
|
|
}
|
|
|
|
async isError() {
|
|
await expect(this.error).toBeVisible();
|
|
}
|
|
}
|