Skip to content

chore(e2e-tests): wait for data modeling components in tests #7215

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

@Copilot Copilot AI review requested due to automatic review settings August 19, 2025 18:07
@Anemy Anemy requested a review from a team as a code owner August 19, 2025 18:07
@Anemy Anemy added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label Aug 19, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses test flakiness in the data modeling tab end-to-end tests by replacing brittle synchronous assertions with more robust asynchronous waiting patterns.

  • Replaces isDisplayed() and isExisting() assertions with waitForDisplayed() calls
  • Adds explicit waits for relationship edit buttons before attempting to interact with them
  • Uses waitForDisplayed({ reverse: true }) to wait for element removal instead of checking existence

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -585,11 +585,13 @@ describe('Data Modeling tab', function () {
const relationshipItem = drawer.$(
Selectors.DataModelCollectionRelationshipItem(relationshipId)
);
expect(await relationshipItem.isDisplayed()).to.be.true;
await relationshipItem.waitForDisplayed();
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants