Fix navigation spec for bim

pull/7643/head
Oliver Günther 5 years ago
parent 47f731f07c
commit 40f18aec52
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 6
      lib/open_project/configuration/helpers.rb
  2. 5
      spec/features/work_packages/navigation_spec.rb

@ -77,6 +77,12 @@ module OpenProject
array self['blacklisted_routes'] array self['blacklisted_routes']
end end
##
# Whether we're running a bim edition
def bim?
ENV['OPENPROJECT_EDITION'] == 'bim'
end
def available_file_uploaders def available_file_uploaders
uploaders = { uploaders = {

@ -203,6 +203,11 @@ RSpec.feature 'Work package navigation', js: true, selenium: true do
# Click on All open # Click on All open
find('.wp-query-menu--item-link', text: 'All open').click find('.wp-query-menu--item-link', text: 'All open').click
if OpenProject::Configuration.bim?
wp_display.expect_state 'Cards'
else
wp_display.expect_state 'Table' wp_display.expect_state 'Table'
end end
end
end end

Loading…
Cancel
Save