refactor: 💅 Use common selector ALERT_TOAST_BODY across test suite (#2692)
* replace with alert toast body, replace with this.server.schema * revert changes to db,schema * use common selector, alert toast body * replace ERROR_MSG_SELECTOR with common selector ALERT_TOAST_BODY
This commit is contained in:
1 parent
20c4bbcee2
commit
f12ae90aba
45 files changed
+124
-138
No files matched your search
@@ -9,6 +9,7 @@ import { setupApplicationTest } from 'admin/tests/helpers';
|
||||
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
|
||||
import { Response } from 'miragejs';
|
||||
import { authenticateSession } from 'ember-simple-auth/test-support';
|
||||
import * as commonSelectors from 'admin/tests/helpers/selectors';
|
||||
|
||||
module('Acceptance | workers | create', function (hooks) {
|
||||
setupApplicationTest(hooks);
|
||||
@@ -126,7 +127,7 @@ module('Acceptance | workers | create', function (hooks) {
|
||||
await fillIn('[name="worker_auth_registration_request"]', 'token');
|
||||
await click('[type="submit"]');
|
||||
assert
|
||||
.dom('[data-test-toast-notification] .hds-alert__description')
|
||||
.dom(commonSelectors.ALERT_TOAST_BODY)
|
||||
.hasText('rpc error: code = Unknown');
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user