Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Vault
Commits
d060a456
Unverified
Commit
d060a456
authored
3 years ago
by
Jordan Reimer
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
updates to logout auth method test to address failures in 1.8.x and 1.9.x versions (#14614)
parent
111c1d86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/tests/acceptance/logout-auth-method-test.js
+5
-4
ui/tests/acceptance/logout-auth-method-test.js
with
5 additions
and
4 deletions
+5
-4
ui/tests/acceptance/logout-auth-method-test.js
+
5
-
4
View file @
d060a456
import
{
module
,
test
}
from
'
qunit
'
;
import
{
setupApplicationTest
}
from
'
ember-qunit
'
;
import
{
click
,
visit
,
fillIn
,
settled
}
from
'
@ember/test-helpers
'
;
import
{
click
,
visit
,
fillIn
}
from
'
@ember/test-helpers
'
;
import
{
setupMirage
}
from
'
ember-cli-mirage/test-support
'
;
import
{
fakeWindow
,
buildMessage
}
from
'
../helpers/oidc-window-stub
'
;
import
sinon
from
'
sinon
'
;
...
...
@@ -29,10 +29,11 @@ module('Acceptance | logout auth method', function (hooks) {
sessionStorage
.
removeItem
(
'
selectedAuth
'
);
await
visit
(
'
/vault/auth
'
);
await
fillIn
(
'
[data-test-select="auth-method"]
'
,
'
oidc
'
);
later
(()
=>
run
.
cancelTimers
(),
50
);
later
(()
=>
{
window
.
postMessage
(
buildMessage
().
data
,
window
.
origin
);
run
.
cancelTimers
();
},
50
);
await
click
(
'
[data-test-auth-submit]
'
);
window
.
postMessage
(
buildMessage
().
data
,
window
.
origin
);
await
settled
();
await
click
(
'
.nav-user-button button
'
);
await
click
(
'
#logout
'
);
assert
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help