Skip to content

Commit 517fcc7

Browse files
committed
- Fixed test
1 parent 8804816 commit 517fcc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/elements/test/reconnect_spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ describe('Reconnect', () => {
5757
// Check that the Angular element was bound to properties too
5858
const testEl = testContainer.querySelector<Element & ReconnectTestComponentEl>('reconnect-el')!;
5959
testEl.testProp = 'b';
60+
// Wait change to be propagated
61+
await tick(10);
6062
expect(testContainer.querySelector('.test-prop-outlet')!.textContent).toBe('b');
61-
6263
// Now detach the element from the container
6364
testContainer.removeChild(testEl);
6465
// Wait for detach timer
@@ -92,6 +93,8 @@ describe('Reconnect', () => {
9293
// Check that the Angular element was bound to properties too
9394
const testEl = testContainer.querySelector<Element & ReconnectTestComponentEl>('reconnect-el')!;
9495
testEl.testProp = 'b';
96+
// Wait change to be propagated
97+
await tick(10);
9598
expect(testContainer.querySelector('.test-prop-outlet')!.textContent).toBe('b');
9699

97100
// Now detach the root from the DOM

0 commit comments

Comments
 (0)