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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix CSS selector in dynamic-form-component spec
Alexander Brandon Coles56f0316c6a02
diff --git a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.spec.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.spec.tsindex d61174105d7..2f9f85a1aa2 100644--- a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.spec.ts+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.spec.ts@@ -388,7 +388,7 @@ describe('DynamicFormComponent', () => {expect(fixture.debugElement.query(By.css('[data-qa="op-form--container"]'))).toBeTruthy();expect(fixture.debugElement.queryAll(By.css('formly-form')).length).toEqual(1);- expect(fixture.debugElement.queryAll(By.css('formly-field')).length).toEqual(10);+ expect(fixture.debugElement.queryAll(By.css('formly-field * > formly-field')).length).toEqual(10);expect(fixture.debugElement.queryAll(By.css('op-text-input')).length).toEqual(2);expect(fixture.debugElement.queryAll(By.css('op-formattable-textarea-input')).length).toEqual(2);expect(fixture.debugElement.queryAll(By.css('op-select-input')).length).toEqual(2);@@ -416,7 +416,7 @@ describe('DynamicFormComponent', () => {expect(fixture.debugElement.query(By.css('[data-qa="op-form--container"]'))).toBeTruthy();expect(fixture.debugElement.queryAll(By.css('formly-form')).length).toEqual(1);- expect(fixture.debugElement.queryAll(By.css('formly-field')).length).toEqual(10);+ expect(fixture.debugElement.queryAll(By.css('formly-field * > formly-field')).length).toEqual(10);expect(fixture.debugElement.queryAll(By.css('op-text-input')).length).toEqual(2);expect(fixture.debugElement.queryAll(By.css('op-formattable-textarea-input')).length).toEqual(2);expect(fixture.debugElement.queryAll(By.css('op-select-input')).length).toEqual(2);