Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit e169616

Browse files
committed
test(stastic-list): add waitFor call
1 parent 09bea8e commit e169616

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/components/statistic-list/component-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { A } from "@ember/array";
22
import ArrayProxy from "@ember/array/proxy";
3-
import { render } from "@ember/test-helpers";
3+
import { render, waitFor } from "@ember/test-helpers";
44
import { hbs } from "ember-cli-htmlbars";
55
import { setupRenderingTest } from "ember-qunit";
66
import moment from "moment";
@@ -99,6 +99,8 @@ module("Integration | Component | statistic list", function (hooks) {
9999
</div>
100100
`);
101101

102+
await waitFor("table tbody tr");
103+
102104
assert.dom("[data-test-statistic-list-column]").exists({ count: 4 });
103105
assert.dom("[data-test-statistic-list-row]").exists({ count: 2 });
104106
assert.dom(".total").hasText("34h 30m");

0 commit comments

Comments
 (0)