-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Ember data 4.11.x to 4.12.x #25272
Changes from all commits
14ce2cb
6e36528
b323f07
2ed465c
2d8c358
af6a724
d410438
af0b053
8a6bf18
fac1f55
c49ef97
7706e6d
6c57982
f457a14
3948e67
371b9d8
620a40f
e2fab11
652140f
f6f729f
f5b08d4
a44330a
0e5d328
3c790c0
038a3dd
26a723b
d8dcad4
c0a358f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:change | ||
ui: Upgrade Ember data from 4.11.3 to 4.12.4 | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
import { module, test } from 'qunit'; | ||
import { setupApplicationTest } from 'ember-qunit'; | ||
import { click, currentRouteName, fillIn, visit } from '@ember/test-helpers'; | ||
import { click, currentRouteName, fillIn, visit, waitFor } from '@ember/test-helpers'; | ||
import authPage from 'vault/tests/pages/auth'; | ||
import { setupMirage } from 'ember-cli-mirage/test-support'; | ||
import mfaConfigHandlers from 'vault/mirage/handlers/mfa-config'; | ||
|
@@ -134,6 +134,7 @@ module('Acceptance | mfa-login-enforcement', function (hooks) { | |
assert.dom('h1').includesText(enforcement.name, 'Name renders in title'); | ||
assert.dom('h1 svg').hasClass('flight-icon-lock', 'Lock icon renders in title'); | ||
assert.dom('[data-test-tab="targets"]').hasClass('active', 'Targets tab is active by default'); | ||
await waitFor('[data-test-target]', { timeout: 5000 }); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is strange that we need to do this, and I'm wondering if it's because we're using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @chelshaw no luck. Though I did learn something new. Removing the waitFors I always hit the timeout issues even with the change you suggested. |
||
assert.dom('[data-test-target]').exists({ count: 4 }, 'Targets render in list'); | ||
// targets tab | ||
const targets = { | ||
|
@@ -231,6 +232,7 @@ module('Acceptance | mfa-login-enforcement', function (hooks) { | |
await click('[data-test-mlef-remove-target="Authentication method"]'); | ||
await click('[data-test-mlef-save]'); | ||
|
||
await waitFor('[data-test-target]', { timeout: 5000 }); | ||
assert.strictEqual( | ||
currentRouteName(), | ||
'vault.cluster.access.mfa.enforcements.enforcement.index', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious why this was changed to all lower case? Also, does this only happen in test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only a test thing. and I wish i knew the answer. in a previous ember upgrade it changed to uppercase and here we're changing it back. 🙃