refactor: 💡 remove rose::notification in favor of hds (#2557)

* refactor: 💡 remove rose::notification in favor of hds

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-15634
This commit is contained in:
Lisbet Alvarez authored and GitHub committed 2024-11-19 15:18:18 -08:00
1 parent 66e9e971a1
commit 543cf4697f
84 files changed
+398 -591

No files matched your search

@@ -4,14 +4,7 @@
*/
import { module, test } from 'qunit';
import {
visit,
fillIn,
click,
find,
findAll,
currentURL,
} from '@ember/test-helpers';
import { visit, fillIn, click, findAll, currentURL } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import { Response } from 'miragejs';
@@ -137,11 +130,9 @@ module('Acceptance | workers | create', function (hooks) {
await visit(newWorkerURL);
await fillIn('[name="worker_auth_registration_request"]', 'token');
await click('[type="submit"]');
assert.strictEqual(
find('.rose-notification-body').textContent.trim(),
'rpc error: code = Unknown',
'Displays primary error message.',
);
assert
.dom('[data-test-toast-notification] .hds-alert__description')
.hasText('rpc error: code = Unknown');
});
test('users cannot directly navigate to new worker route without proper authorization', async function (assert) {