From 2528aeaceed3ace9f19fe1ecfd4c301e44b31048 Mon Sep 17 00:00:00 2001 From: Matus Kasak Date: Thu, 23 Oct 2025 12:56:24 +0200 Subject: [PATCH 1/2] Disable static page playwright test for customer/tul --- config/config.tul.ui.tests.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.tul.ui.tests.json b/config/config.tul.ui.tests.json index cedbdfe4293..13c90fca8a3 100644 --- a/config/config.tul.ui.tests.json +++ b/config/config.tul.ui.tests.json @@ -6,7 +6,8 @@ "has_resource_select": false, "has_contact_person": false, "has_license_select": false, - "has_size_dropdown": false + "has_size_dropdown": false, + "has_static_page": false }, "locators": { "title": "DSpace :: Home", From 8a9560f12d9db353d3bcb0f17cd7fb37353d249d Mon Sep 17 00:00:00 2001 From: Matus Kasak Date: Tue, 10 Mar 2026 15:14:12 +0100 Subject: [PATCH 2/2] Changed id to class --- cypress/integration/header.spec.ts | 1 - src/app/search-navbar/search-navbar.component.html | 2 +- src/app/search-navbar/search-navbar.component.spec.ts | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cypress/integration/header.spec.ts b/cypress/integration/header.spec.ts index f2437a687a9..4fe53f7e5ac 100644 --- a/cypress/integration/header.spec.ts +++ b/cypress/integration/header.spec.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 e1de59ce512..d93fac4e0c7 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();