diff --git a/src/app/features/project/addons/addons.component.html b/src/app/features/project/addons/addons.component.html index 5f4b90dc4..bf228d176 100644 --- a/src/app/features/project/addons/addons.component.html +++ b/src/app/features/project/addons/addons.component.html @@ -48,6 +48,9 @@ } +

+ {{ 'settings.addons.connectedDescription' | translate }} +

{ it('should create', () => { expect(component).toBeTruthy(); }); + + it('should render the connected description paragraph', () => { + component['selectedTab'].set(component['AddonTabValue'].ALL_ADDONS); + fixture.detectChanges(); + const compiled: HTMLElement = fixture.nativeElement; + const p = compiled.querySelector('p'); + expect(p).toBeTruthy(); + expect(p?.textContent?.trim()).toContain('settings.addons.description'); + }); + + it('should render the connected description paragraph', () => { + component['selectedTab'].set(component['AddonTabValue'].CONNECTED_ADDONS); + fixture.detectChanges(); + const compiled: HTMLElement = fixture.nativeElement; + const p = compiled.querySelector('p'); + expect(p).toBeTruthy(); + expect(p?.textContent?.trim()).toContain('settings.addons.connectedDescription'); + }); }); diff --git a/src/app/features/settings/addons/addons.component.html b/src/app/features/settings/addons/addons.component.html index 4e7b369f8..d6ea70db0 100644 --- a/src/app/features/settings/addons/addons.component.html +++ b/src/app/features/settings/addons/addons.component.html @@ -52,6 +52,9 @@
+

+ {{ 'settings.addons.connectedDescription' | translate }} +

{ it('should create', () => { expect(component).toBeTruthy(); }); + + it('should render the connected description paragraph', () => { + component['selectedTab'].set(component['AddonTabValue'].ALL_ADDONS); + fixture.detectChanges(); + const compiled: HTMLElement = fixture.nativeElement; + const p = compiled.querySelector('p'); + expect(p).toBeTruthy(); + expect(p?.textContent?.trim()).toContain('settings.addons.description'); + }); + + it('should render the connected description paragraph', () => { + component['selectedTab'].set(component['AddonTabValue'].CONNECTED_ADDONS); + fixture.detectChanges(); + const compiled: HTMLElement = fixture.nativeElement; + const p = compiled.querySelector('p'); + expect(p).toBeTruthy(); + expect(p?.textContent?.trim()).toContain('settings.addons.connectedDescription'); + }); }); diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index cdf5e4004..13cfed232 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -1423,6 +1423,7 @@ "title": "Add-ons" }, "description": "Sync your projects with external services to help stay connected and organized. Select a category and browse the options. Add-ons can also be linked directly from Project page.", + "connectedDescription": "Manage your connected Add-ons, re-authorize, disconnect account, or disconnect project", "tabs": { "allAddons": "All Add-ons", "connectedAddons": "Connected Add-ons"