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

Fix project include spec selectors

Benjamin Bädorf00403470b979
diff --git a/frontend/src/app/spot/components/drop-modal/drop-modal-portal.component.ts b/frontend/src/app/spot/components/drop-modal/drop-modal-portal.component.ts
index 6714ee2a156..76212962aed 100644
--- a/frontend/src/app/spot/components/drop-modal/drop-modal-portal.component.ts
+++ b/frontend/src/app/spot/components/drop-modal/drop-modal-portal.component.ts
@@ -3,6 +3,7 @@ import {
ChangeDetectionStrategy,
Component,
ElementRef,
+ HostBinding,
} from '@angular/core';
import { SpotDropModalTeleportationService } from './drop-modal-teleportation.service';
@@ -14,6 +15,7 @@ export const spotDropModalPortalComponentSelector = 'spot-drop-modal-portal';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class SpotDropModalPortalComponent implements AfterViewChecked {
+ @HostBinding('class.spot-drop-modal-portal') className = true;
constructor(
readonly template$:SpotDropModalTeleportationService,
diff --git a/spec/support/components/project_include_component.rb b/spec/support/components/project_include_component.rb
index 98c75bbf00a..6813fbb1fd1 100644
--- a/spec/support/components/project_include_component.rb
+++ b/spec/support/components/project_include_component.rb
@@ -103,11 +103,11 @@ module Components
end
def body_element
- page.find(selector + ' .spot-drop-modal--body')
+ page.find(body_selector)
end
def body_selector
- selector + ' .spot-drop-modal--body'
+ '.spot-drop-modal-portal .spot-drop-modal--body'
end
def selector