mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 08:09:22 +00:00
52 lines
998 B
JavaScript
52 lines
998 B
JavaScript
// rumPage.js
|
|
import { expect } from '@playwright/test';
|
|
|
|
|
|
export class RumPage {
|
|
constructor(page) {
|
|
this.page = page;
|
|
this.rumPageMenu = page.locator('[data-test="menu-link-\\/rum-item"]');
|
|
|
|
}
|
|
async gotoRumPage() {
|
|
|
|
await this.rumPageMenu.click();
|
|
|
|
}
|
|
|
|
|
|
async rumPageDefaultOrg() {
|
|
|
|
await this.page.locator('[data-test="navbar-organizations-select"]').getByText('arrow_drop_down').click();
|
|
await this.page.getByText('default', { exact: true }).click();
|
|
|
|
|
|
}
|
|
|
|
async rumPageDefaultMultiOrg() {
|
|
|
|
|
|
|
|
await this.page.locator('[data-test="navbar-organizations-select"]').getByText('arrow_drop_down').click();
|
|
|
|
|
|
await this.page.getByRole('option', { name: 'defaulttestmulti' }).locator('div').nth(2).click();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
async rumPageURLValidation() {
|
|
|
|
await expect(this.page).toHaveURL(/defaulttestmulti/);
|
|
|
|
}
|
|
|
|
async rumURLValidation() {
|
|
|
|
await expect(this.page).toHaveURL(/rum/);
|
|
|
|
}
|
|
|
|
} |