mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
90978: Fix e2e tests failing due to interactions before page fully loaded
Now that we use initialNavigation: 'enabledBlocking', pages can appear to be loaded before some functionality is fully active. In some cases this trips up Cypress, and it tries to interact with the app too soon. We address this by introducing a new dsBrowserOnly pipe in order to defer the data-test attributes Cypress relies on to CSR.
This commit is contained in:
@@ -173,7 +173,7 @@ import { DsSelectComponent } from './ds-select/ds-select.component';
|
||||
import { LogInOidcComponent } from './log-in/methods/oidc/log-in-oidc.component';
|
||||
import { ThemedItemListPreviewComponent } from './object-list/my-dspace-result-list-element/item-list-preview/themed-item-list-preview.component';
|
||||
import { ExternalLinkMenuItemComponent } from './menu/menu-item/external-link-menu-item.component';
|
||||
|
||||
import { BrowserOnlyPipe } from './utils/browser-only.pipe';
|
||||
const MODULES = [
|
||||
// Do NOT include UniversalModule, HttpModule, or JsonpModule here
|
||||
CommonModule,
|
||||
@@ -215,7 +215,8 @@ const PIPES = [
|
||||
ObjectKeysPipe,
|
||||
ObjectValuesPipe,
|
||||
ConsolePipe,
|
||||
ObjNgFor
|
||||
ObjNgFor,
|
||||
BrowserOnlyPipe,
|
||||
];
|
||||
|
||||
const COMPONENTS = [
|
||||
|
Reference in New Issue
Block a user