Skip to content

Commit

Permalink
wait for svg to be on the screen.
Browse files Browse the repository at this point in the history
for some effin reason, this test started to glitch on in the CI pipeline
today. hopefully, this change will set thing right again.
  • Loading branch information
stopfstedt committed Sep 13, 2023
1 parent 2932740 commit 0617a4c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { setupIntl } from 'ember-intl/test-support';
import { render } from '@ember/test-helpers';
import { render, waitFor } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';

Expand Down Expand Up @@ -78,6 +78,9 @@ module('Integration | Component | visualizer-program-year-objectives', function
this.set('programYear', programYearModel);
await render(hbs`<VisualizerProgramYearObjectives @programYear={{this.programYear}} />`);

await waitFor('.loaded');
await waitFor('svg .links');
await waitFor('svg .nodes');
assert.dom('svg').exists({ count: 1 });
assert.dom('svg g.links').exists({ count: 1 });
assert.dom('svg g.nodes').exists({ count: 1 });
Expand Down

0 comments on commit 0617a4c

Please sign in to comment.