UI/Wrong sentinel error message for auth methods (#14551)

* priortize adapter error over model error

* glimmerize message-error component

* message error tweaks

* fix glimmerize

* fix some tests

* change error handling for mount backend form

* throw API error for secret engine not mounting

* fix tests"

* fix tests

* cleanup error handling for secret engine mounts

* fix test selector

* add changelog

* STOP BEING FLAKY
This commit is contained in:
claire bontempo
2022-03-18 16:47:42 -07:00
committed by GitHub
parent 9796cf2dd8
commit 4df3a7c4fb
19 changed files with 97 additions and 101 deletions

View File

@@ -17,11 +17,10 @@ module('Integration | Component | ttl picker', function (hooks) {
let callCount = this.changeSpy.callCount;
await fillIn('[data-test-ttl-value]', 'foo');
assert.equal(this.changeSpy.callCount, callCount, "it did't call onChange again");
assert.equal(this.changeSpy.callCount, callCount, "it didn't call onChange again");
assert.dom('[data-test-ttl-error]').includesText('Error', 'renders the error box');
await fillIn('[data-test-ttl-value]', '33');
assert.dom('[data-test-ttl-error]').doesNotIncludeText('Error', 'removes the error box');
assert.dom('[data-test-ttl-error]').doesNotExist('removes the error box');
});
test('it shows 30s for invalid duration initialValue input', async function (assert) {