Skip to content
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

Backport of UI: Stabilize tests by sorting expected attrs into release/1.17.x #27399

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ui/tests/acceptance/open-api-path-help-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function secretEngineHelper(test, secretEngine) {
const expected = engineData[modelName];
// Expected values should be updated to match "actual" (result)
assert.deepEqual(
Object.keys(result),
Object.keys(expected),
Object.keys(result).sort(),
Object.keys(expected).sort(),
`getProps returns expected attributes for ${modelName}`
);
Object.keys(expected).forEach((attrName) => {
Expand All @@ -103,8 +103,8 @@ function authEngineHelper(test, authBackend) {
const result = await this.pathHelp.getProps(helpUrl, this.mount);
const expected = authData[itemName];
assert.deepEqual(
Object.keys(result),
Object.keys(expected),
Object.keys(result).sort(),
Object.keys(expected).sort(),
`getProps returns expected attributes for ${itemName}`
);
Object.keys(expected).forEach((attrName) => {
Expand Down
Loading