mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 16:10:43 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a reactive variable for organization data, improving state management. - Updated functionality to accept an object for organization data, enhancing input validation and handling. - **Bug Fixes** - Enhanced error handling for better debugging without altering existing functionality. - **Refactor** - Improved readability and maintainability of the layout component with formatting adjustments and refined logic. - Updated test cases to reflect changes in URL structure for consistency. <!-- 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 '@playwright/test';
|
|
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();
|
|
});
|
|
});
|