Skip to content

Commit 636c7b7

Browse files
authored
chore(e2e-tests): wait for data modeling components in tests (#7215)
1 parent fce64c0 commit 636c7b7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/compass-e2e-tests/tests/data-modeling-tab.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,13 @@ describe('Data Modeling tab', function () {
585585
const relationshipItem = drawer.$(
586586
Selectors.DataModelCollectionRelationshipItem(relationshipId)
587587
);
588-
expect(await relationshipItem.isDisplayed()).to.be.true;
588+
await relationshipItem.waitForDisplayed();
589589
expect(await relationshipItem.getText()).to.include('testCollection-one');
590590

591591
// Edit the relationship
592-
await relationshipItem.waitForDisplayed();
592+
await relationshipItem
593+
.$(Selectors.DataModelCollectionRelationshipItemEdit)
594+
.waitForDisplayed();
593595
await relationshipItem
594596
.$(Selectors.DataModelCollectionRelationshipItemEdit)
595597
.click();
@@ -619,7 +621,7 @@ describe('Data Modeling tab', function () {
619621
.click();
620622

621623
// Verify that the relationship is removed from the list and the diagram
622-
expect(await relationshipItem.isExisting()).to.be.false;
624+
await relationshipItem.waitForDisplayed({ reverse: true });
623625
await getDiagramEdges(browser, 0);
624626
});
625627

0 commit comments

Comments
 (0)