Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E tests - Create alert #1729

Merged
merged 22 commits into from
Jan 2, 2025
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f23e8b8
Create alert basic e2e test
harshilvelotio Dec 17, 2024
98d6f35
removed access token
harshilvelotio Dec 17, 2024
6f86b2e
multi dimensional basic tests
harshilvelotio Dec 17, 2024
d78fdd5
added comments
harshilvelotio Dec 17, 2024
ec3aee9
Updated test cases
harshilvelotio Dec 17, 2024
47387c2
undo'ed import
harshilvelotio Dec 17, 2024
9c2848c
fix(ui): Updated the test case
harshilvelotio Dec 17, 2024
9e9842f
fix(ui): Added Test cases for custom metric and advance options
harshilvelotio Dec 18, 2024
5372325
fix(ui): Added Test cases for Alert Details and anomaly
harshilvelotio Dec 19, 2024
bed3c35
fix(ui): Added Test cases for Onboarding page
harshilvelotio Dec 23, 2024
13ed8e2
Merge branch 'e2e-setup' into harshil/e2e-tests
harshilvelotio Dec 23, 2024
16ea7db
Test Check
harshilvelotio Dec 23, 2024
192ed5b
Anomaly test fix
harshilvelotio Dec 23, 2024
eb4f470
Anomaly View test fix
harshilvelotio Dec 23, 2024
b6cd1a5
Anomaly api test fix
harshilvelotio Dec 23, 2024
92947a3
Anomaly test fix
harshilvelotio Dec 23, 2024
a587169
anomaly test updatded
harshilvelotio Dec 23, 2024
393478c
Merge branch 'e2e-setup' into harshil/e2e-tests
harshilvelotio Dec 30, 2024
3b4927a
Merge branch 'e2e-setup' into harshil/e2e-tests
harshilvelotio Dec 30, 2024
891fc76
preventDefault added for Apply filter button
harshilvelotio Dec 30, 2024
faf1207
Revert e2e yaml file change
harshilvelotio Dec 30, 2024
f8c077c
fix(ui): Added Test cases for Onboarding page when dataset is Empty
harshilvelotio Dec 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Anomaly test fix
harshilvelotio committed Dec 23, 2024
commit 192ed5b5795ceb790b35f8932693aef540c953fc
8 changes: 8 additions & 0 deletions thirdeye-ui/e2e/pages/alert-detail.ts
Original file line number Diff line number Diff line change
@@ -129,6 +129,14 @@ export class AlertDetailsPage extends BasePage {
.click();
}

async checkAnomaliesCount() {
const node = this.page
.locator("span")
.filter({ hasText: "Anomalies" })
.first();
const str = await node.allTextContents();
return str[0];
}
async openFirstAlert() {
await this.page
.locator("a")
4 changes: 4 additions & 0 deletions thirdeye-ui/e2e/tests/anomalies.spec.ts
Original file line number Diff line number Diff line change
@@ -22,6 +22,10 @@ test("Investigate Anomaly", async ({ page }) => {
await alertDetailsPage.checkHeader();
await alertDetailsPage.openFirstAlert();
await alertDetailsPage.checkAlertHeader();
const anomalyCount = await alertDetailsPage.checkAnomaliesCount();
if (anomalyCount === "0") {
return;
}
await alertDetailsPage.openAnomalies();
await alertDetailsPage.resolveAnomaliesApis();
await alertDetailsPage.openAnomalieFromTable();