mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 16:10:43 +00:00
## Summary - Moves 17 spec files from flat `RegressionSet/` into 8 feature folders: Alerts, Dashboards, General, Logs, Metrics, Pipelines, Streams, Traces - Merges `logs-regression-bugs-2.spec.js` (9 tests) into `Logs/logs-bugs.spec.js` (36 tests total), removing the duplicate file - Drops the redundant `-regression` suffix from filenames (e.g., `alerts-regression-bugs.spec.js` → `alerts-bugs.spec.js`) - Updates `.github/workflows/playwright_regression.yml` matrix with new subdirectory paths - Adds missing `logs-ent.spec.js` and `traces-ent.spec.js` to CI shards ## Test plan - [ ] CI: Logs-Regression shard runs all 5 Logs files (merged bugs file + ent) - [ ] CI: All 8 shards resolve correct file paths under `RegressionSet/<Feature>/` - [ ] No file references the deleted `logs-regression-bugs-2.spec.js` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
76 lines
3.5 KiB
JavaScript
76 lines
3.5 KiB
JavaScript
/**
|
|
* Data Sources Regression Bug Tests
|
|
*
|
|
* Bug fixes for Data Sources page functionality:
|
|
* - #11682: On clicking on AI integration the credentials disappear
|
|
*/
|
|
|
|
const { test, expect, navigateToBase } = require('../../utils/enhanced-baseFixtures.js');
|
|
const testLogger = require('../../utils/test-logger.js');
|
|
const PageManager = require('../../../pages/page-manager.js');
|
|
|
|
test.describe("Data Sources Regression Bug Fixes", () => {
|
|
test.describe.configure({ mode: 'parallel' });
|
|
let pm;
|
|
|
|
test.beforeEach(async ({ page }, testInfo) => {
|
|
testLogger.testStart(testInfo.title, testInfo.file);
|
|
await navigateToBase(page);
|
|
pm = new PageManager(page);
|
|
await page.waitForLoadState('networkidle', { timeout: 10000 }).catch(() => {});
|
|
testLogger.info('Data sources regression test setup completed');
|
|
});
|
|
|
|
// ==========================================================================
|
|
// Bug #11682: On clicking on AI integration the credentials disappear
|
|
// https://github.com/openobserve/openobserve/issues/11682
|
|
// ==========================================================================
|
|
test("AI integration content should persist when integration is re-clicked", {
|
|
tag: ['@bug-11682', '@P1', '@regression', '@datasourcesRegression']
|
|
}, async ({ page }) => {
|
|
testLogger.info('Test: Verify AI integration content persists on re-click (Bug #11682)');
|
|
|
|
// Navigate to Data Sources → AI Integrations
|
|
// AI Integrations is an ORouteTab inside the Ingestion page (not a sidebar MenuLink),
|
|
// so we navigate directly to its URL instead of clicking a tab selector.
|
|
const aiUrl = `${process.env.ZO_BASE_URL || 'http://localhost:5080'}/web/ingestion/ai-integrations?org_identifier=${process.env.ORGNAME || 'default'}`;
|
|
await page.goto(aiUrl, { timeout: 15000 }).catch(() => {});
|
|
await page.waitForLoadState('networkidle', { timeout: 10000 }).catch(() => {});
|
|
testLogger.info('Navigated to AI Integrations');
|
|
|
|
// Click the first available AI integration item to view its detail
|
|
const firstIntegration = page.locator('[data-test^="ai-integrations-item-"]').first();
|
|
await expect(firstIntegration, 'At least one AI integration should be visible').toBeVisible({ timeout: 5000 });
|
|
await firstIntegration.click();
|
|
await page.waitForTimeout(1500);
|
|
testLogger.info('Clicked first AI integration item');
|
|
|
|
// Verify the detail content rendered (CopyContent shows markdown/instructions)
|
|
const detailContent = page.locator('[data-test="rum-content-text"]');
|
|
const contentBefore = await detailContent.textContent().catch(() => '');
|
|
testLogger.info(`Detail content length before re-click: ${contentBefore.length}`);
|
|
|
|
expect(contentBefore.length,
|
|
'Bug #11682: AI Integration detail should show content on first click'
|
|
).toBeGreaterThan(0);
|
|
|
|
// Re-click the same integration — this was the bug trigger (#11682)
|
|
await firstIntegration.click();
|
|
await page.waitForTimeout(1500);
|
|
|
|
// Verify content is still present after re-click (not blank)
|
|
const contentAfter = await detailContent.textContent().catch(() => '');
|
|
testLogger.info(`Detail content length after re-click: ${contentAfter.length}`);
|
|
|
|
expect(contentAfter.length,
|
|
'Bug #11682: AI Integration content should not disappear when re-clicking'
|
|
).toBeGreaterThan(0);
|
|
|
|
testLogger.info('PASSED: AI Integration content persists on re-click');
|
|
});
|
|
|
|
test.afterEach(async () => {
|
|
testLogger.info('Data sources regression test completed');
|
|
});
|
|
});
|