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

[#43685] removed unused css class

Eric Schubertabd4c695561d
diff --git a/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
index e7ee7bc8077..5a0941eefb4 100644
--- a/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
+++ b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
@@ -48,13 +48,15 @@
<div class="spot-modal--footer spot-action-bar">
<div class="spot-action-bar--right">
<button
- class="confirm-form-submit--cancel button button_no-margin spot-action-bar--action"
+ class="button button_no-margin spot-action-bar--action"
+ data-qa-selector="confirmation-modal--cancel"
(click)="closeMe($event)"
[textContent]="text.button_cancel"
[attr.title]="text.button_cancel"
></button>
<button
- class="confirm-form-submit--submit button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -highlight spot-action-bar--action"
+ data-qa-selector="confirmation-modal--confirmed"
(click)="create()"
[disabled]="!this.selectedAttribute || inFlight"
[textContent]="text.button_add"
diff --git a/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html
index 28bec3909b9..463b7ac38c5 100644
--- a/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html
+++ b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html
@@ -35,13 +35,15 @@
<div *ngIf="!eeTrialService.status || eeTrialService.cancelled; else mailSubmitted"
class="spot-action-bar--right">
<button
- class="confirm-form-submit--cancel button button_no-margin spot-action-bar--action"
+ class="button button_no-margin spot-action-bar--action"
+ data-qa-selector="confirmation-modal--cancel"
(click)="closeModal($event)"
[textContent]="text.button_cancel"
[attr.title]="text.button_cancel"
></button>
<button
- class="confirm-form-submit--continue button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -highlight spot-action-bar--action"
+ data-qa-selector="confirmation-modal--confirmed"
(click)="onSubmit()"
[disabled]="!trialForm || trialForm.invalid"
[textContent]="text.button_submit"
@@ -52,7 +54,8 @@
<ng-template #mailSubmitted>
<div class="spot-action-bar--right">
<button
- class="confirm-form-submit--continue button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -highlight spot-action-bar--action"
+ data-qa-selector="confirmation-modal--confirmed"
(click)="startEnterpriseTrial()"
[textContent]="text.button_continue"
[attr.title]="text.button_continue"
@@ -61,7 +64,8 @@
></button>
<button
*ngIf="eeTrialService.trialStarted"
- class="confirm-form-submit--continue button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -highlight spot-action-bar--action"
+ data-qa-selector="confirmation-modal--confirmed"
(click)="closeModal($event)"
[textContent]="text.button_continue"
[attr.title]="text.button_continue"
diff --git a/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.html b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.html
index 03edaddb283..725b55e0cca 100644
--- a/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.html
+++ b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.html
@@ -1,5 +1,5 @@
<div
- class="spot-modal confirm-form-submit--modal loading-indicator--location"
+ class="spot-modal loading-indicator--location"
data-indicator-name="modal"
>
<div class="spot-modal--header">{{text.title}}</div>
@@ -15,6 +15,7 @@
<div class="spot-modal--footer spot-action-bar">
<div class="spot-action-bar--right">
<button class="button button_no-margin spot-action-bar--action"
+ data-qa-selector="confirmation-modal--cancel"
(click)="closeMe($event)"
>
<op-icon
@@ -30,6 +31,7 @@
>{{text.button_cancel}}</span>
</button>
<button class="button button_no-margin spot-action-bar--action"
+ data-qa-selector="confirmation-modal--confirmed"
[ngClass]="dangerHighlighting ? '-danger': '-highlight'"
(click)="confirmAndClose($event)"
>
diff --git a/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.html b/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.html
index fdaf391b8cf..7466452254f 100644
--- a/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.html
+++ b/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.html
@@ -31,10 +31,10 @@
<div class="spot-modal--footer spot-action-bar">
<div class="spot-action-bar--right">
<button
- class="confirm-form-submit--continue button button_no-margin -highlight spot-action-bar--action"
+ class="button button_no-margin -highlight spot-action-bar--action"
+ data-qa-selector="confirmation-modal--confirmed"
[textContent]="additionalText.confirm_button"
[disabled]="!passwordValuePresent()">
- >
</button>
</div>
</div>
diff --git a/modules/boards/spec/features/support/board_page.rb b/modules/boards/spec/features/support/board_page.rb
index a167c6c7448..a5cacc1d690 100644
--- a/modules/boards/spec/features/support/board_page.rb
+++ b/modules/boards/spec/features/support/board_page.rb
@@ -182,7 +182,7 @@ module Pages
else
open_and_fill_add_list_modal query
page.find('.ng-option', text: option, wait: 10).click
- page.find('.confirm-form-submit--submit').click
+ page.find('[data-qa-selector="confirmation-modal--confirmed"]').click
end
end
diff --git a/spec/features/admin/enterprise/enterprise_spec.rb b/spec/features/admin/enterprise/enterprise_spec.rb
index d1c62a5df41..f4ad9e35e70 100644
--- a/spec/features/admin/enterprise/enterprise_spec.rb
+++ b/spec/features/admin/enterprise/enterprise_spec.rb
@@ -36,7 +36,7 @@ describe 'Enterprise token', type: :feature, js: true do
token = OpenProject::Token.new
token.subscriber = 'Foobar'
token.mail = '[email protected]'
- token.starts_at = Date.today
+ token.starts_at = Time.zone.today
token.expires_at = nil
token.domain = Setting.host_name
@@ -67,7 +67,7 @@ describe 'Enterprise token', type: :feature, js: true do
expect(page).to have_selector('span.errorSpan #enterprise_token_encoded_token')
end
- context 'assuming valid input' do
+ context 'with valid input' do
before do
allow(OpenProject::Token).to receive(:import).and_return(token_object)
end
@@ -82,7 +82,7 @@ describe 'Enterprise token', type: :feature, js: true do
expect(page.all('.attributes-key-value--key').map(&:text))
.to eq ['Subscriber', 'Email', 'Domain', 'Maximum active users', 'Starts at', 'Expires at']
expect(page.all('.attributes-key-value--value').map(&:text))
- .to eq ['Foobar', '[email protected]', Setting.host_name, 'Unlimited', format_date(Date.today), 'Unlimited']
+ .to eq ['Foobar', '[email protected]', Setting.host_name, 'Unlimited', format_date(Time.zone.today), 'Unlimited']
expect(page).to have_selector('.button.icon-delete', text: I18n.t(:button_delete))
@@ -107,7 +107,7 @@ describe 'Enterprise token', type: :feature, js: true do
click_on "Delete"
# Expect modal
- find('.confirm-form-submit--continue').click
+ find('[data-qa-selector="confirmation-modal--confirmed"]').click
expect(textarea.value).to be_empty
expect(page).to have_selector('.flash.notice', text: I18n.t(:notice_successful_delete))
diff --git a/spec/support/components/confirmation_dialog.rb b/spec/support/components/confirmation_dialog.rb
index a9abaa8e28f..4059b394767 100644
--- a/spec/support/components/confirmation_dialog.rb
+++ b/spec/support/components/confirmation_dialog.rb
@@ -31,8 +31,6 @@ module Components
include Capybara::DSL
include RSpec::Matchers
- def initialize; end
-
def container
'.spot-modal'
end
@@ -43,13 +41,13 @@ module Components
def confirm
page.within(container) do
- page.find('.confirm-form-submit--continue').click
+ page.find('[data-qa-selector="confirmation-modal--confirmed"]').click
end
end
def cancel
page.within(container) do
- page.find('.confirm-form-submit--cancel').click
+ page.find('[data-qa-selector="confirmation-modal--cancel"]').click
end
end
end
diff --git a/spec/support/components/password_confirmation_dialog.rb b/spec/support/components/password_confirmation_dialog.rb
index 43350349800..373335d90b2 100644
--- a/spec/support/components/password_confirmation_dialog.rb
+++ b/spec/support/components/password_confirmation_dialog.rb
@@ -31,8 +31,6 @@ module Components
include Capybara::DSL
include RSpec::Matchers
- def initialize; end
-
def confirm_flow_with(password, should_fail: false)
expect_open
@@ -52,7 +50,7 @@ module Components
end
def submit_button
- page.find('.confirm-form-submit--continue')
+ page.find('[data-qa-selector="confirmation-modal--confirmed"]')
end
private