From b06ac13ec9091d27cd5bf1d42b699717f8d239a3 Mon Sep 17 00:00:00 2001 From: Carola Bratsch Date: Thu, 22 Jul 2021 14:30:00 +0200 Subject: [PATCH] feat: add Quickorder Link for mobile view (#794) --- e2e/cypress/integration/pages/header.module.ts | 2 +- .../header-quickorder.component.html | 8 ++++---- .../header-default.component.spec.ts.snap | 12 ++++++------ .../header-default/header-default.component.html | 2 +- .../user-information-mobile.component.html | 3 +++ .../user-information-mobile.component.spec.ts | 2 ++ src/styles/components/header/header-sticky.scss | 6 ++++-- src/styles/components/header/header.scss | 10 ++++++++++ 8 files changed, 31 insertions(+), 14 deletions(-) diff --git a/e2e/cypress/integration/pages/header.module.ts b/e2e/cypress/integration/pages/header.module.ts index 40e9456113..a4fe5042dc 100644 --- a/e2e/cypress/integration/pages/header.module.ts +++ b/e2e/cypress/integration/pages/header.module.ts @@ -45,7 +45,7 @@ export class HeaderModule { } gotoQuickorder(wait: () => unknown = waitLoadingEnd) { - cy.get('a[rel="quick-order"]').click(); + cy.get('a[rel="quick-order"]:visible').click(); wait(); } diff --git a/src/app/extensions/quickorder/shared/header-quickorder/header-quickorder.component.html b/src/app/extensions/quickorder/shared/header-quickorder/header-quickorder.component.html index acc0397f02..352fce2068 100644 --- a/src/app/extensions/quickorder/shared/header-quickorder/header-quickorder.component.html +++ b/src/app/extensions/quickorder/shared/header-quickorder/header-quickorder.component.html @@ -1,4 +1,4 @@ - + + + {{ 'quickorder.page.link' | translate }} + diff --git a/src/app/shell/header/header-default/__snapshots__/header-default.component.spec.ts.snap b/src/app/shell/header/header-default/__snapshots__/header-default.component.spec.ts.snap index 94514ee440..50e3569bc8 100644 --- a/src/app/shell/header/header-default/__snapshots__/header-default.component.spec.ts.snap +++ b/src/app/shell/header/header-default/__snapshots__/header-default.component.spec.ts.snap @@ -30,7 +30,7 @@ exports[`Header Default Component should render normal header adequately for des ng-reflect-view="small" > -
+
-
+
-
+
-
+
-
+
-
+
-
+