mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 16:09:41 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced `LogsPage` with improved date and time selection, timezone management, and clipboard operations. - Introduced `ManagementPage` for UI testing, allowing logo updates and management functionalities. - Added new tests for time zone changes and streamlined test scenarios on the logs page. - Introduced a suite of tests for joining logs, validating various join scenarios. - **Bug Fixes** - Updated confirm button interaction in `ReportsPage` to ensure visibility before clicking. - **Documentation** - Improved clarity and purpose of test scenarios through restructuring and simplification. - **Chores** - Added `logoManagement.spec.js` and `join.spec.js` to the Playwright UI integration tests for expanded coverage. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
34 lines
1.4 KiB
JavaScript
34 lines
1.4 KiB
JavaScript
import { test, expect } from "./baseFixtures";
|
|
import { LoginPage } from '../pages/loginPage';
|
|
import { DashboardPage } from '../pages/dashboardPage';
|
|
import { ReportsPage } from '../pages/reportsPage';
|
|
import { IngestionPage } from '../pages/ingestionPage';
|
|
|
|
|
|
test.describe("Report test cases Updated", () => {
|
|
let loginPage, dashboardPage, reportsPage, ingestionPage;
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
loginPage = new LoginPage(page);
|
|
ingestionPage = new IngestionPage(page);
|
|
dashboardPage = new DashboardPage(page);
|
|
reportsPage = new ReportsPage(page);
|
|
await loginPage.gotoLoginPage();
|
|
await loginPage.login();
|
|
await ingestionPage.ingestion();
|
|
});
|
|
test("Create, use, and delete dashboard and report", async ({ page }) => {
|
|
const TEST_REPORT_NAME = "rreport1";
|
|
await dashboardPage.navigateToDashboards();
|
|
await dashboardPage.createDashboard();
|
|
await expect(page).toHaveURL(/.*\/dashboards/);
|
|
await page.goto(process.env["ZO_BASE_URL"] + "/web/reports?org_identifier=default");
|
|
await reportsPage.createReport(dashboardPage.dashboardName);
|
|
await page.goto(process.env["ZO_BASE_URL"] + "/web/reports?org_identifier=default");
|
|
await expect(page).toHaveURL(/.*\/reports/);
|
|
await reportsPage.deleteReport(TEST_REPORT_NAME);
|
|
await dashboardPage.navigateToDashboards();
|
|
await dashboardPage.deleteDashboard();
|
|
});
|
|
});
|