diff --git a/test/e2e-test-application/e2e/tests/1-angular/luigi-client-link-manager-features.spec.js b/test/e2e-test-application/e2e/tests/1-angular/luigi-client-link-manager-features.spec.js index 877b7009ff..dba7187b43 100644 --- a/test/e2e-test-application/e2e/tests/1-angular/luigi-client-link-manager-features.spec.js +++ b/test/e2e-test-application/e2e/tests/1-angular/luigi-client-link-manager-features.spec.js @@ -158,6 +158,28 @@ describe('Luigi client linkManager', () => { }); }); + it('navigate with preserve view and goBack dynamic context', localRetries, () => { + //navigate with preserve view functionality + cy.wrap($iframeBody) + .contains('with preserved view: to dynamic node and go back') + .click(); + cy.expectPathToBe('/projects/pr1/users/groups/test1/settings'); + + cy.getIframeBody().then($iframeBody => { + cy.wrap($iframeBody) + .contains('projects/pr1/users/groups/test2/settings') + .click(); + cy.expectPathToBe('/projects/pr1/users/groups/test2/settings'); + + cy.getIframeBody().then($iframeBody => { + cy.wrap($iframeBody) + .contains('Go Back') + .click(); + cy.expectPathToBe('/projects/pr1/users/groups/test1/settings'); + }); + }); + }); + it('path exists check', localRetries, () => { [ // non-existent relative path diff --git a/test/e2e-test-application/src/app/project/project.component.html b/test/e2e-test-application/src/app/project/project.component.html index f3fbe1619f..8ddf78edf3 100644 --- a/test/e2e-test-application/src/app/project/project.component.html +++ b/test/e2e-test-application/src/app/project/project.component.html @@ -400,6 +400,18 @@

Navigate

data="linkManager().navigate('/settings', null, true)" > +
  • + + with preserved view: to dynamic node and go back + + +
  • { + .then(data => { if (typeof data === 'string' && data.includes('neverShowItAgain')) { this.alertDismissKey = true; } diff --git a/test/e2e-test-application/src/app/project/users/groups/group-details/group-settings/group-settings.component.html b/test/e2e-test-application/src/app/project/users/groups/group-details/group-settings/group-settings.component.html index 30788d532b..752f4f110b 100644 --- a/test/e2e-test-application/src/app/project/users/groups/group-details/group-settings/group-settings.component.html +++ b/test/e2e-test-application/src/app/project/users/groups/group-details/group-settings/group-settings.component.html @@ -31,7 +31,26 @@

    Group Settings

    projects/pr2/users/groups/others/settings/dyn1
    - +
    + projects/pr1/users/groups/test2/settings +
    +
    +
    + Go Back +
    +