Skip to content

Fixes #33239: Add Playwright E2E coverage for DQ failure thresholds - #35486

Merged
TeddyCr merged 2 commits into
open-metadata:mainfrom
TeddyCr:dq-threshold-w4.1-docs-e2e
Oct 15, 2026
Merged

TeddyCr merged 2 commits into
open-metadata:mainfrom
TeddyCr:dq-threshold-w4.1-docs-e2e

Conversation

@TeddyCr

@TeddyCr TeddyCr commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #33239

This adds Playwright E2E coverage for DQ failure thresholds (epic #16301, W4.1). The user docs for this issue live in the docs repo: open-metadata/docs-om#605. openmetadata-docs/ no longer exists in this repo.

New spec: playwright/e2e/Features/DataQuality/FailureThreshold.spec.ts

  • Enum parameters render as sentences, not raw values.
    • Operator: on Custom SQL Query, every option reads as words ("at most" … "anything other than"). The listbox shows no <, >, == or !=, and the selected value reads "at least", not >=.
    • Threshold Unit: the options never show ABSOLUTE/PERCENTAGE.
    • Preview: reads "Pass when the query returns at least 10% of table rows."
  • Relative threshold passes where the strict test fails.
    • A columnValuesToBeNotNull test is created through the form with 5% of rows. The preview sentence is checked, and so are the saved threshold/thresholdUnit values in the POST response.
    • A strict test (no threshold) is created on the same column through the API.
    • Both get the run ingestion reports for 3 nulls in 100 rows. The strict run shows Failed / "No tolerance" / "3 row(s) (3.00%)". The relative run shows Success / "5% of rows" / "3.00% (3 row(s))". Both show "100 row(s)" evaluated.

The run is seeded through /testCaseResults rather than produced by a real pipeline. The PR shards have no queryable database with known data, and every other DQ spec seeds results this way. The evaluation itself is covered by the ingestion unit tests (test_row_threshold.py, test_failure_thresholds.py, …).

Type of change:

  • Improvement

High-level design:

N/A — test-only change.

Tests:

Use cases covered

  • Threshold-related enum parameters (operator, threshold unit) read as sentences in the test case form, and the preview restates them.
  • A relative (PERCENTAGE) threshold saved from the form turns the same failing rows into a passing run. The run details show the threshold beside the failed share and the evaluated rows.

Unit tests

Not applicable (test-only change).

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • I added Playwright E2E tests under openmetadata-ui/.../ui/playwright/ for UI changes.
  • Files added: playwright/e2e/Features/DataQuality/FailureThreshold.spec.ts (covered by the Features/DataQuality/** impact-map glob).

Ran locally: npx playwright test playwright/e2e/Features/DataQuality/FailureThreshold.spec.ts --project=chromium --retries=0 → 2 passed. The server was a local OSS build containing all DQ Threshold commits (W1.3, W3.1, W3.2).

RED check: changing the relative run's expected threshold to 5 row(s) fails with Received: "5% of rows".

yarn lint:playwright: 0 errors, and no warnings on the new file.

Manual testing performed

Ran the spec as above against a local server.

UI screen recording:

Not applicable — test-only change, no UI behavior changes.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

🤖 Generated with Claude Code

… thresholds

Cover the threshold parameters in the test case form and on run results:
- Custom SQL Query's operator and threshold unit render as sentences, never
  the stored <=, >=, ABSOLUTE or PERCENTAGE values, and the preview restates
  the choice.
- A columnValuesToBeNotNull test created through the form with a 5% relative
  threshold passes on the same 3-in-100 null run that fails a strict test, and
  each run shows the threshold it was judged by beside the failed share and the
  evaluated rows.
Copilot AI balanced review requested due to automatic review settings October 14, 2026 23:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Oct 14, 2026
@TeddyCr
TeddyCr enabled auto-merge October 14, 2026 23:42
Copilot AI balanced review requested due to automatic review settings October 14, 2026 23:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs and removed safe to test Add this label to run secure Github workflows on PRs labels Oct 14, 2026
@gitar-bot

gitar-bot Bot commented Oct 14, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟢 Low risk · The new focused Playwright spec checks threshold labels and seeded result presentation without changing application runtime behavior.

Adds Playwright E2E coverage for DQ failure thresholds, checking that enum parameters render as readable sentences in the test case form and that a relative 5% threshold turns the same failing rows into a passing run. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@TeddyCr
TeddyCr added this pull request to the merge queue Oct 15, 2026
Merged via the queue into open-metadata:main with commit cf61fe0 Oct 15, 2026
69 checks passed
@TeddyCr
TeddyCr deleted the dq-threshold-w4.1-docs-e2e branch October 15, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DQ Threshold W4.1] Docs + Playwright E2E coverage

4 participants