Skip to content

Commit 4aa58ad

Browse files
committed
fix test case
1 parent 3a8bb0f commit 4aa58ad

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

tests/integration/components/profile/upload-image-test.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { module, test } from 'qunit';
22
import { setupRenderingTest } from 'ember-qunit';
33
import { render, triggerEvent } from '@ember/test-helpers';
4-
import { waitFor } from '@ember/test-helpers';
54
import { hbs } from 'ember-cli-htmlbars';
65

76
module('Integration | Component | image uploader', function (hooks) {
@@ -76,13 +75,12 @@ module('Integration | Component | image uploader', function (hooks) {
7675
await triggerEvent('[data-test-btn="upload-image"]', 'click', {
7776
dataTransfer,
7877
});
79-
await waitFor('p.message-text__failure');
80-
8178
assert
82-
.dom('p.message-text__failure')
83-
.hasText(
84-
'Error occured, please try again and if the issue still exists contact administrator and create a issue on the repo with logs',
85-
);
79+
.dom('h1')
80+
.hasText('Crop Selected Image', 'Crop UI is shown after selecting file');
81+
assert
82+
.dom('[data-test-btn="upload-image"]')
83+
.exists('Upload button is available');
8684
});
8785

8886
test('it renders crop UI when an image is selected', async function (assert) {

0 commit comments

Comments
 (0)