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
808be426
Commit
808be426
authored
Oct 12, 2020
by
Anastasia McDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Dynamic Element Validation to Snippet/Edit
https://gitlab.com/gitlab-org/gitlab/-/issues/257877
parent
0e335a91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
qa/qa/page/component/snippet.rb
qa/qa/page/component/snippet.rb
+1
-1
qa/qa/page/dashboard/snippet/edit.rb
qa/qa/page/dashboard/snippet/edit.rb
+1
-2
No files found.
qa/qa/page/component/snippet.rb
View file @
808be426
...
@@ -139,7 +139,7 @@ module QA
...
@@ -139,7 +139,7 @@ module QA
end
end
def
click_edit_button
def
click_edit_button
click_element
(
:snippet_action_button
,
action:
'Edit'
)
click_element
(
:snippet_action_button
,
Page
::
Dashboard
::
Snippet
::
Edit
,
action:
'Edit'
)
end
end
def
click_delete_button
def
click_delete_button
...
...
qa/qa/page/dashboard/snippet/edit.rb
View file @
808be426
...
@@ -6,11 +6,10 @@ module QA
...
@@ -6,11 +6,10 @@ module QA
module
Snippet
module
Snippet
class
Edit
<
Page
::
Base
class
Edit
<
Page
::
Base
view
'app/assets/javascripts/snippets/components/edit.vue'
do
view
'app/assets/javascripts/snippets/components/edit.vue'
do
element
:submit_button
element
:submit_button
,
required:
true
end
end
def
add_to_file_content
(
content
)
def
add_to_file_content
(
content
)
finished_loading?
text_area
.
set
content
text_area
.
set
content
text_area
.
has_text?
(
content
)
# wait for changes to take effect
text_area
.
has_text?
(
content
)
# wait for changes to take effect
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