The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/tests/e2e/page-objects/utils.ts

25 lines
546 B

import type { Locator, Page } from '@playwright/test';
export class Utils {
private readonly page: Page;
constructor(page: Page) {
this.page = page;
}
get toastBar(): Locator {
return this.page.locator('.rcx-toastbar');
}
get toastBarSuccess(): Locator {
return this.page.locator('.rcx-toastbar.rcx-toastbar--success');
}
get toastBarError(): Locator {
return this.page.locator('.rcx-toastbar.rcx-toastbar--error');
}
get btnModalConfirmDelete() {
return this.page.locator('.rcx-modal >> button >> text="Delete"');
}
}