Files
openobserve/tests/ui-testing/playwright-tests/secondsPrecisionAdded.spec.js
T
ShyamOOAI 28319bdac3 test: Update coverage report (#5107)
<!-- 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 -->
2024-11-29 05:54:29 +05:30

31 lines
1.1 KiB
JavaScript

// Implementation test.spec.js
import { test, expect } from "./baseFixtures";
import { LoginPage } from '../pages/loginPage.js';
import { LogsPage } from '../pages/logsPage.js';
import { startTimeValue, endTimeValue } from '../pages/CommonLocator.js';
test('Relative Seconds on Logs page', async ({ page }) => {
// Create page object instances
const loginPage = new LoginPage(page);
const logsPage = new LogsPage(page);
// Step 1: Navigate to the application and login
await page.goto(process.env["ZO_BASE_URL"]);
// console.log ('URL Opened')
await loginPage.gotoLoginPage();
await loginPage.login(process.env["ZO_ROOT_USER_EMAIL"], process.env["ZO_ROOT_USER_PASSWORD"]);
// Step 2: Navigate to Logs Page
await page.waitForTimeout(4000); // Wait for login process
await logsPage.navigateToLogs();
// Step 3: Select Index and Stream
await page.waitForTimeout(3000); // Wait for logs page to load
// Step 4: Set the time to past 30 seconds and verify
await logsPage.setTimeToPast30Seconds();
await logsPage.verifyTimeSetTo30Seconds();
await logsPage.signOut();
});