BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c01338cb
Unverified
Commit
c01338cb
authored
Sep 27, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed spec/features/u2f_spec.rb
a lot of failures where because everything happens faster than rspec can detect on the page
parent
b4af5468
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
u2f_spec.rb
spec/features/u2f_spec.rb
+3
-5
No files found.
spec/features/u2f_spec.rb
View file @
c01338cb
...
...
@@ -191,7 +191,6 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
# Try authenticating user with the old U2F device
gitlab_sign_in
(
current_user
)
@u2f_device
.
respond_to_u2f_authentication
expect
(
page
).
to
have_content
(
'We heard back from your U2F device'
)
expect
(
page
).
to
have_content
(
'Authentication via U2F device failed'
)
end
end
...
...
@@ -209,7 +208,6 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
# Try authenticating user with the same U2F device
gitlab_sign_in
(
current_user
)
@u2f_device
.
respond_to_u2f_authentication
expect
(
page
).
to
have_content
(
'We heard back from your U2F device'
)
expect
(
page
).
to
have_css
(
'.sign-out-link'
,
visible:
false
)
end
...
...
@@ -221,7 +219,6 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
unregistered_device
=
FakeU2fDevice
.
new
(
page
,
'My device'
)
gitlab_sign_in
(
user
)
unregistered_device
.
respond_to_u2f_authentication
expect
(
page
).
to
have_content
(
'We heard back from your U2F device'
)
expect
(
page
).
to
have_content
(
'Authentication via U2F device failed'
)
end
...
...
@@ -246,7 +243,6 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
[
first_device
,
second_device
].
each
do
|
device
|
gitlab_sign_in
(
user
)
device
.
respond_to_u2f_authentication
expect
(
page
).
to
have_content
(
'We heard back from your U2F device'
)
expect
(
page
).
to
have_css
(
'.sign-out-link'
,
visible:
false
)
...
...
@@ -269,7 +265,9 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
it
"deletes u2f registrations"
do
visit
profile_account_path
expect
{
click_on
"Disable"
}.
to
change
{
U2fRegistration
.
count
}.
by
(
-
1
)
expect
do
accept_confirm
{
click_on
"Disable"
}
end
.
to
change
{
U2fRegistration
.
count
}.
by
(
-
1
)
end
end
end
...
...
Write
Preview
Markdown
is supported
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