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:
1 parent
66e9e971a1
commit
543cf4697f
84 files changed
+398
-591
No files matched your search
@@ -32,7 +32,8 @@ module('Acceptance | auth-methods | create', function (hooks) {
|
||||
const NAME_INPUT_SELECTOR = '[name="name"]';
|
||||
const URLS_INPUT_SELECTOR = '[name="urls"]';
|
||||
const DESC_INPUT_SELECTOR = '[name="description"]';
|
||||
const ERROR_MSG_SELECTOR = '.rose-notification-body';
|
||||
const ERROR_MSG_SELECTOR =
|
||||
'[data-test-toast-notification] .hds-alert__description';
|
||||
const FIELD_ERROR_TEXT_SELECTOR = '.hds-form-error__message';
|
||||
|
||||
const CERTIFICATES_BTN_SELECTOR = '[name="certificates"] button';
|
||||
|
||||
@@ -28,7 +28,8 @@ module('Acceptance | auth-methods | delete', function (hooks) {
|
||||
|
||||
const DIALOG_DELETE_BTN_SELECTOR = '.rose-dialog .rose-button-primary';
|
||||
const DIALOG_CANCEL_BTN_SELECTOR = '.rose-dialog .rose-button-secondary';
|
||||
const ERROR_MSG_SELECTOR = '.rose-notification-body';
|
||||
const ERROR_MSG_SELECTOR =
|
||||
'[data-test-toast-notification] .hds-alert__description';
|
||||
|
||||
const MANAGE_DROPDOWN_SELECTOR =
|
||||
'[data-test-manage-auth-method] button:first-child';
|
||||
|
||||
@@ -151,10 +151,8 @@ module('Acceptance | auth-methods | oidc', function (hooks) {
|
||||
authMethod.attributes.state,
|
||||
'Auth method state is not be updated.',
|
||||
);
|
||||
assert.ok(
|
||||
find('.rose-notification-body').textContent.trim(),
|
||||
'Sorry!',
|
||||
'Displays error message.',
|
||||
);
|
||||
assert
|
||||
.dom('[data-test-toast-notification] .hds-alert__description')
|
||||
.hasText('Sorry!');
|
||||
});
|
||||
});
|
||||
@@ -33,7 +33,8 @@ module('Acceptance | auth-methods | update', function (hooks) {
|
||||
const NAME_INPUT_SELECTOR = '[name="name"]';
|
||||
const URLS_INPUT_SELECTOR = '[name="urls"]';
|
||||
const DESC_INPUT_SELECTOR = '[name="description"]';
|
||||
const ERROR_MSG_SELECTOR = '.rose-notification-body';
|
||||
const ERROR_MSG_SELECTOR =
|
||||
'[data-test-toast-notification] .hds-alert__description';
|
||||
const FIELD_ERROR_TEXT_SELECTOR = '.hds-form-error__message';
|
||||
const CERTIFICATES_REMOVE_BTN_SELECTOR =
|
||||
'[name="certificates"] [data-test-remove-button]';
|
||||
|
||||
Reference in new issue
Block a user