Skip to content

Commit 2757c9c

Browse files
committed
wait for container animations
1 parent 9569384 commit 2757c9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,15 @@ describe('Data Modeling tab', function () {
119119
JSON.stringify(newModel)
120120
);
121121
await browser.clickVisible(Selectors.DataModelEditorApplyButton);
122+
await browser.waitForAnimations(dataModelEditor);
122123

123124
// Verify that the model is updated
124125
nodes = await getDiagramNodes(browser);
125126
expect(nodes).to.have.lengthOf(0);
126127

127128
// Undo the change
128129
await browser.clickVisible(Selectors.DataModelUndoButton);
130+
await browser.waitForAnimations(dataModelEditor);
129131
nodes = await getDiagramNodes(browser);
130132
expect(nodes).to.have.lengthOf(2);
131133
expect(nodes).to.deep.equal([
@@ -136,6 +138,7 @@ describe('Data Modeling tab', function () {
136138
// Redo the change
137139
await browser.waitForAriaDisabled(Selectors.DataModelRedoButton, false);
138140
await browser.clickVisible(Selectors.DataModelRedoButton);
141+
await browser.waitForAnimations(dataModelEditor);
139142
nodes = await getDiagramNodes(browser);
140143
expect(nodes).to.have.lengthOf(0);
141144

0 commit comments

Comments
 (0)