Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[chore] minor fixes to sass and spec files

Eric Schubertb2f8f98c118e
diff --git a/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.sass b/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.sass
index e6099ccd669..527f0218fbd 100644
--- a/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.sass
+++ b/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.sass
@@ -1,4 +1,3 @@
-.op-tab-row--tab
- .op-tab-row--link
- *
- pointer-events: none
\ No newline at end of file
+.op-tab-row--link
+ *
+ pointer-events: none
diff --git a/spec/features/work_packages/attachments/attachment_upload_spec.rb b/spec/features/work_packages/attachments/attachment_upload_spec.rb
index b05c8c5d1c7..81883160314 100644
--- a/spec/features/work_packages/attachments/attachment_upload_spec.rb
+++ b/spec/features/work_packages/attachments/attachment_upload_spec.rb
@@ -1,3 +1,31 @@
+#-- copyright
+# OpenProject is an open source project management software.
+# Copyright (C) 2012-2022 the OpenProject GmbH
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 3.
+#
+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+# Copyright (C) 2006-2013 Jean-Philippe Lang
+# Copyright (C) 2010-2013 the ChiliProject Team
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# See COPYRIGHT and LICENSE files for more details.
+#++
+
require 'spec_helper'
require 'features/page_objects/notification'
@@ -155,7 +183,7 @@ describe 'Upload attachment to work package', js: true do
describe 'attachment dropzone' do
it 'can upload an image via attaching and drag & drop' do
- wp_page.switch_to_tab(tab: 'FILES')
+ wp_page.switch_to_tab(tab: 'files')
container = page.find('.wp-attachment-upload')
##
diff --git a/spec/support/browsers/firefox.rb b/spec/support/browsers/firefox.rb
index f39ad3deaf9..9f42c0c12c0 100644
--- a/spec/support/browsers/firefox.rb
+++ b/spec/support/browsers/firefox.rb
@@ -32,6 +32,10 @@ def register_firefox(language, name: :"firefox_#{language}")
options.args << "--headless"
end
+ if ActiveRecord::Type::Boolean.new.cast(ENV['OPENPROJECT_TESTING_AUTO_DEVTOOLS'])
+ options.args << "--devtools"
+ end
+
is_grid = ENV['SELENIUM_GRID_URL'].present?
driver_opts = {