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
b36a3d2e
Commit
b36a3d2e
authored
May 29, 2020
by
Jason Goodman
Committed by
Andrew Fontaine
May 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve within_strategy_row spec helper
Add js css class to decouple helper from DOM structure
parent
936c99b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/app/assets/javascripts/feature_flags/components/form.vue
ee/app/assets/javascripts/feature_flags/components/form.vue
+2
-2
ee/spec/support/helpers/feature_flag_helpers.rb
ee/spec/support/helpers/feature_flag_helpers.rb
+1
-1
No files found.
ee/app/assets/javascripts/feature_flags/components/form.vue
View file @
b36a3d2e
...
...
@@ -305,7 +305,7 @@ export default {
</div>
</div>
</div>
<
template
v-if=
"filteredStrategies.length > 0
"
>
<
div
v-if=
"filteredStrategies.length > 0"
data-testid=
"feature-flag-strategies
"
>
<strategy
v-for=
"(strategy, index) in filteredStrategies"
:key=
"strategy.id"
...
...
@@ -316,7 +316,7 @@ export default {
@
change=
"onFormStrategyChange($event, index)"
@
delete=
"deleteStrategy(strategy)"
/>
</
template
>
</
div
>
<div
v-else
class=
"flex justify-content-center border-top py-4 w-100"
>
<span>
{{
$options
.
translations
.
noStrategiesText
}}
</span>
</div>
...
...
ee/spec/support/helpers/feature_flag_helpers.rb
View file @
b36a3d2e
...
...
@@ -33,7 +33,7 @@ module FeatureFlagHelpers
end
def
within_strategy_row
(
index
)
within
".feature-flags-form > fieldset > div
:nth-child(
#{
index
+
3
}
)"
do
within
".feature-flags-form > fieldset > div
[data-testid='feature-flag-strategies'] > div:nth-child(
#{
index
}
)"
do
yield
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