Skip to content

Commit 73498d1

Browse files
committed
handle scenarios wheres the DCDO flag isn't set
1 parent 8bf1456 commit 73498d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dashboard/test/ui/features/step_definitions/projects.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
# inappropriate projects. This enviroment lets us test "view more" link
66
# visibility without updating the tests every time we toggle the flag.
77
And(/^I confirm correct visibility of view more links$/) do
8-
hidden_view_more_links = DCDO.get('image_moderation', {})['limited_project_gallery']
8+
dcdo_flag = DCDO.get('image_moderation', {})['limited_project_gallery']
9+
hidden_view_more_links = dcdo_flag.nil? ? true : dcdo_flag
910
if hidden_view_more_links
1011
steps %Q{
1112
And the project gallery contains 5 view more links

0 commit comments

Comments
 (0)