Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2023bd3b
Commit
2023bd3b
authored
Oct 18, 2018
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplication and update instance saml test
parent
1e1cc1bb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
qa/qa/specs/features/browser_ui/1_manage/ee_group/group_saml_sso_spec.rb
...tures/browser_ui/1_manage/ee_group/group_saml_sso_spec.rb
+2
-2
qa/qa/specs/features/browser_ui/1_manage/login/login_via_instance_wide_saml_sso_spec.rb
...i/1_manage/login/login_via_instance_wide_saml_sso_spec.rb
+1
-1
qa/qa/vendor/saml_idp/page/login.rb
qa/qa/vendor/saml_idp/page/login.rb
+6
-4
No files found.
qa/qa/specs/features/browser_ui/1_manage/ee_group/group_saml_sso_spec.rb
View file @
2023bd3b
...
...
@@ -23,7 +23,7 @@ module QA
EE
::
Page
::
Group
::
SamlSSOSignIn
.
act
{
click_signin
}
Vendor
::
SAMLIdp
::
Page
::
Login
.
act
{
login
}
if
page
.
has_text?
(
'Enter your username and password'
)
Vendor
::
SAMLIdp
::
Page
::
Login
.
act
{
login
_if_required
}
expect
(
page
).
to
have_content
(
"Signed in with SAML for
#{
Runtime
::
Env
.
sandbox_name
}
"
)
...
...
@@ -47,7 +47,7 @@ module QA
click_test_button
end
Vendor
::
SAMLIdp
::
Page
::
Login
.
act
{
login
}
if
page
.
has_text?
(
'Enter your username and password'
)
Vendor
::
SAMLIdp
::
Page
::
Login
.
act
{
login
_if_required
}
expect
(
page
).
to
have_content
(
"Test SAML SSO"
)
end
...
...
qa/qa/specs/features/browser_ui/1_manage/login/login_via_instance_wide_saml_sso_spec.rb
View file @
2023bd3b
...
...
@@ -8,7 +8,7 @@ module QA
Page
::
Main
::
Login
.
act
{
sign_in_with_saml
}
Vendor
::
SAMLIdp
::
Page
::
Login
.
act
{
login
}
Vendor
::
SAMLIdp
::
Page
::
Login
.
act
{
login
_if_required
}
expect
(
page
).
to
have_content
(
'Welcome to GitLab'
)
end
...
...
qa/qa/vendor/saml_idp/page/login.rb
View file @
2023bd3b
...
...
@@ -7,7 +7,8 @@ module QA
module
SAMLIdp
module
Page
class
Login
<
Page
::
Base
def
login
def
login_if_required
if
page
.
has_text?
(
'Enter your username and password'
)
fill_in
'username'
,
with:
'user1'
fill_in
'password'
,
with:
'user1pass'
click_on
'Login'
...
...
@@ -16,4 +17,5 @@ module QA
end
end
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