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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
ffb17a3b
Commit
ffb17a3b
authored
Jan 16, 2019
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use qa element with wait
parent
88189d31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
app/views/shared/_personal_access_tokens_created_container.html.haml
...hared/_personal_access_tokens_created_container.html.haml
+1
-1
qa/qa/page/profile/personal_access_tokens.rb
qa/qa/page/profile/personal_access_tokens.rb
+2
-3
No files found.
app/views/shared/_personal_access_tokens_created_container.html.haml
View file @
ffb17a3b
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
=
container_title
=
container_title
.form-group
.form-group
.input-group
.input-group
=
text_field_tag
'created-personal-access-token'
,
new_token_value
,
readonly:
true
,
class:
"form-control js-select-on-focus"
,
'aria-describedby'
=>
"created-token-help-block"
=
text_field_tag
'created-personal-access-token'
,
new_token_value
,
readonly:
true
,
class:
"
qa-created-personal-access-token
form-control js-select-on-focus"
,
'aria-describedby'
=>
"created-token-help-block"
%span
.input-group-append
%span
.input-group-append
=
clipboard_button
(
text:
new_token_value
,
title:
clipboard_button_title
,
placement:
"left"
,
class:
"input-group-text btn-default btn-clipboard"
)
=
clipboard_button
(
text:
new_token_value
,
title:
clipboard_button_title
,
placement:
"left"
,
class:
"input-group-text btn-default btn-clipboard"
)
%span
#created-token-help-block
.form-text.text-muted.text-danger
Make sure you save it - you won't be able to access it again.
%span
#created-token-help-block
.form-text.text-muted.text-danger
Make sure you save it - you won't be able to access it again.
...
...
qa/qa/page/profile/personal_access_tokens.rb
View file @
ffb17a3b
...
@@ -9,9 +9,8 @@ module QA
...
@@ -9,9 +9,8 @@ module QA
end
end
view
'app/views/shared/_personal_access_tokens_created_container.html.haml'
do
view
'app/views/shared/_personal_access_tokens_created_container.html.haml'
do
element
:create
_token_field
,
"text_field_tag 'created-personal-access-token'"
# rubocop:disable QA/ElementWithPatter
n
element
:create
d_personal_access_toke
n
end
end
view
'app/views/shared/_personal_access_tokens_table.html.haml'
do
view
'app/views/shared/_personal_access_tokens_table.html.haml'
do
element
:revoke_button
element
:revoke_button
end
end
...
@@ -29,7 +28,7 @@ module QA
...
@@ -29,7 +28,7 @@ module QA
end
end
def
created_access_token
def
created_access_token
page
.
find
(
'#created-personal-access-token'
).
value
find_element
(
:created_personal_access_token
,
wait:
30
).
value
end
end
def
has_token_row_for_name?
(
token_name
)
def
has_token_row_for_name?
(
token_name
)
...
...
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