diff --git a/cypress/e2e/header.cy.ts b/cypress/e2e/header.cy.ts index f2437a687a9..4fe53f7e5ac 100644 --- a/cypress/e2e/header.cy.ts +++ b/cypress/e2e/header.cy.ts @@ -12,7 +12,6 @@ describe('Header', () => { // testA11y({ // include: ['ds-header'], // exclude: [ - // ['#search-navbar-container'], // search in navbar has duplicative ID. Will be fixed in #1174 // ['.dropdownLogin'] // "Log in" link has color contrast issues. Will be fixed in #1149 // ], // }); diff --git a/src/app/search-navbar/search-navbar.component.html b/src/app/search-navbar/search-navbar.component.html index 02a98905021..c60e1139594 100644 --- a/src/app/search-navbar/search-navbar.component.html +++ b/src/app/search-navbar/search-navbar.component.html @@ -1,4 +1,4 @@ -
+
{ spyOn(component, 'expand').and.callThrough(); spyOn(component, 'onSubmit').and.callThrough(); spyOn(router, 'navigate'); - const searchIcon = fixture.debugElement.query(By.css('#search-navbar-container form .submit-icon')); + const searchIcon = fixture.debugElement.query(By.css('.search-navbar-container form .submit-icon')); searchIcon.triggerEventHandler('click', { preventDefault: () => {/**/ } @@ -88,7 +88,7 @@ describe('SearchNavbarComponent', () => { describe('empty query', () => { describe('press submit button', () => { beforeEach(fakeAsync(() => { - const searchIcon = fixture.debugElement.query(By.css('#search-navbar-container form .submit-icon')); + const searchIcon = fixture.debugElement.query(By.css('.search-navbar-container form .submit-icon')); searchIcon.triggerEventHandler('click', { preventDefault: () => {/**/ } @@ -109,14 +109,14 @@ describe('SearchNavbarComponent', () => { beforeEach(async () => { await fixture.whenStable(); fixture.detectChanges(); - searchInput = fixture.debugElement.query(By.css('#search-navbar-container form input')); + searchInput = fixture.debugElement.query(By.css('.search-navbar-container form input')); searchInput.nativeElement.value = 'test'; searchInput.nativeElement.dispatchEvent(new Event('input')); fixture.detectChanges(); }); describe('press submit button', () => { beforeEach(fakeAsync(() => { - const searchIcon = fixture.debugElement.query(By.css('#search-navbar-container form .submit-icon')); + const searchIcon = fixture.debugElement.query(By.css('.search-navbar-container form .submit-icon')); searchIcon.triggerEventHandler('click', null); tick(); fixture.detectChanges(); diff --git a/src/app/submission/sections/clarin-license-resource/section-license.component.html b/src/app/submission/sections/clarin-license-resource/section-license.component.html index 9ed6b046259..17680d2662d 100644 --- a/src/app/submission/sections/clarin-license-resource/section-license.component.html +++ b/src/app/submission/sections/clarin-license-resource/section-license.component.html @@ -64,11 +64,11 @@ -