Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render } from '@1024pix/ember-testing-library';
import EmberObject from '@ember/object';
import { triggerEvent } from '@ember/test-helpers';
import { settled, triggerEvent, waitUntil } from '@ember/test-helpers';
import { t } from 'ember-intl/test-support';
import HeadInformation from 'pix-admin/components/organizations/head-information';
import ENV from 'pix-admin/config/environment';
Expand Down Expand Up @@ -181,6 +181,8 @@ module('Integration | Component | organizations/header-information', function (h
files: [file],
},
);
await waitUntil(() => notificationService.sendSuccessNotification.calledOnce);
await settled();

// then
assert.true(organization.save.calledOnce);
Expand Down Expand Up @@ -217,6 +219,7 @@ module('Integration | Component | organizations/header-information', function (h
files: [file],
},
);
await waitUntil(() => notificationService.sendErrorNotification.calledOnce);

// then
assert.true(organization.rollbackAttributes.calledOnce);
Expand Down Expand Up @@ -251,6 +254,7 @@ module('Integration | Component | organizations/header-information', function (h
files: [file],
},
);
await waitUntil(() => notificationService.sendErrorNotification.calledOnce);

// then
assert.true(organization.rollbackAttributes.calledOnce);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,11 @@ describe('Integration | Repository | JurySession', function () {

// then
expect(pagination).to.deep.equal(expectedPagination);
expect(jurySessions[0].id).to.equal(expectedSCOSession.id);
expect(jurySessions[1].id).to.equal(expectedSUPSession.id);
expect(jurySessions[2].id).to.equal(expectedPROSession.id);
expect(jurySessions).to.have.lengthOf(3);
expect(jurySessions.map(({ id }) => id)).to.have.members([
expectedSCOSession.id,
expectedSUPSession.id,
expectedPROSession.id,
]);
});
});

Expand Down
Loading