fallback for datacontract status check#27665
Conversation
…nnotations Co-authored-by: shrabantipaul-collate <253027805+shrabantipaul-collate@users.noreply.github.com>
🟡 Playwright Results — all passed (14 flaky)✅ 3959 passed · ❌ 0 failed · 🟡 14 flaky · ⏭️ 86 skipped
🟡 14 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Gitar
|
* fallback for datacontract status check * refactor: extract TestCaseEntry type to eliminate duplicated inline annotations Co-authored-by: shrabantipaul-collate <253027805+shrabantipaul-collate@users.noreply.github.com> * address review comments --------- Co-authored-by: Shrabanti Paul <shrabantipaul@Shrabantis-MacBook-Pro.local> Co-authored-by: Gitar <noreply@gitar.ai> Co-authored-by: shrabantipaul-collate <253027805+shrabantipaul-collate@users.noreply.github.com>



Describe your changes:
DataQuality fallback for quality validation timeout
The test suite executes and has results, but the contract's latestResult is sometimes not propagated back in time, causing waitForDataContractExecution to time out at 10 minutes.
Added waitForContractExecutionWithFallback in playwright/utils/dataContracts.ts: if the contract poll times out, it falls back to the DataQuality → Bundle Suites page, finds the Data Contract - test suite, clicks into it, and verifies the test case statuses directly from the API response — asserting a terminal status (Success/Failed/Aborted) to confirm execution completed.
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
DataContracts.spec.tsandDataContractsSemanticRules.spec.tsto useuser.getUserDisplayName()instead of direct property access for improved maintainability.test.setTimeoutinDataContracts.spec.tsto900_000ms(15 minutes) to accommodate slower data contract execution cycles.This will update automatically on new commits.