mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 00:09:35 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced comprehensive UI testing for the Home, Ingestion, Login, Logs, Metrics, Traces, Pipelines, Rum, Dashboard, Alerts, Reports, Data, IAM, and About pages. - Added functionality to handle organization changes and validations across multiple pages, including default organization selections. - New test suite for validating organization change scenarios across various pages. - Enhanced login functionality for internal users. - Introduced new classes and methods for the Metrics, Streams, Rum, and Alerts pages to support UI testing. - Added new classes for the Data and IAM pages, expanding testing capabilities. - Enhanced Management page with navigation and validation capabilities. - New methods for validating page URLs and content across various pages. - **Bug Fixes** - Improved validation methods to ensure proper navigation and content checks on various pages. - **Documentation** - Updated testing framework to include new test cases and improved structure for organization change tests. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
53 lines
1.0 KiB
JavaScript
53 lines
1.0 KiB
JavaScript
// streamPage.js
|
|
import { expect } from '@playwright/test';
|
|
|
|
|
|
export class StreamsPage {
|
|
constructor(page) {
|
|
this.page = page;
|
|
this.streamsPageMenu = page.locator('[data-test="menu-link-\\/streams-item"]');
|
|
|
|
}
|
|
async gotoStreamsPage() {
|
|
|
|
await this.streamsPageMenu.click();
|
|
|
|
}
|
|
|
|
|
|
async streamsPageDefaultOrg() {
|
|
|
|
await this.page.locator('[data-test="navbar-organizations-select"]').getByText('arrow_drop_down').click();
|
|
await this.page.getByText('default', { exact: true }).click();
|
|
|
|
|
|
}
|
|
|
|
async streamsPageDefaultMultiOrg() {
|
|
|
|
|
|
|
|
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 streamsPageURLValidation() {
|
|
|
|
await expect(this.page).toHaveURL(/defaulttestmulti/);
|
|
|
|
}
|
|
|
|
async streamsURLValidation() {
|
|
|
|
await expect(this.page).toHaveURL(/streams/);
|
|
|
|
}
|
|
|
|
}
|