From 6384e88fa48d276d3bc7a01162b1b99dbc9498ca Mon Sep 17 00:00:00 2001
From: nicholas
Date: Mon, 29 Aug 2022 14:52:41 +0200
Subject: [PATCH] Ensure side menu shows on Gift card playground page. Change
titles of tests. Use constant instead of string in unit test
---
.../expiryDate/expiryDatePolicies.optional.regular.test.js | 2 +-
.../expiryDate/expiryDatePolicies.optional.separate.test.js | 2 +-
.../lib/src/components/internal/PayButton/PayButton.test.tsx | 2 +-
packages/playground/src/pages/GiftCards/GiftCards.html | 3 ++-
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/packages/e2e/tests/customcard/expiryDate/expiryDatePolicies.optional.regular.test.js b/packages/e2e/tests/customcard/expiryDate/expiryDatePolicies.optional.regular.test.js
index 974a53d062..904f597e66 100644
--- a/packages/e2e/tests/customcard/expiryDate/expiryDatePolicies.optional.regular.test.js
+++ b/packages/e2e/tests/customcard/expiryDate/expiryDatePolicies.optional.regular.test.js
@@ -66,7 +66,7 @@ test('#1 Testing optional expiryDatePolicy - how UI & state respond', async t =>
.eql(false);
});
-test('#2 Testing optional expiryDatePolicy - how securedField responds', async t => {
+test('#2 Testing optional expiryDatePolicy, in regular Custom Card - how securedField responds', async t => {
// Wait for field to appear in DOM
await cardPage.numHolder();
diff --git a/packages/e2e/tests/customcard/expiryDate/expiryDatePolicies.optional.separate.test.js b/packages/e2e/tests/customcard/expiryDate/expiryDatePolicies.optional.separate.test.js
index 56b5b4bc36..9541c35bc1 100644
--- a/packages/e2e/tests/customcard/expiryDate/expiryDatePolicies.optional.separate.test.js
+++ b/packages/e2e/tests/customcard/expiryDate/expiryDatePolicies.optional.separate.test.js
@@ -76,7 +76,7 @@ test('#1 Testing optional expiryDatePolicy - how UI & state respond', async t =>
.eql(false);
});
-test('#2 Testing optional expiryDatePolicy - how securedFields respond', async t => {
+test('#2 Testing optional expiryDatePolicy, in Custom Card w. separate date fields - how securedFields respond', async t => {
// Wait for field to appear in DOM
await cardPage.numHolder();
diff --git a/packages/lib/src/components/internal/PayButton/PayButton.test.tsx b/packages/lib/src/components/internal/PayButton/PayButton.test.tsx
index c3271e09e8..480079a796 100644
--- a/packages/lib/src/components/internal/PayButton/PayButton.test.tsx
+++ b/packages/lib/src/components/internal/PayButton/PayButton.test.tsx
@@ -24,7 +24,7 @@ describe('PayButton', () => {
secondaryAmount: { currency: 'HRK', value: 7534 }
});
// secondary amount indicators
- expect(wrapper.text()).toContain('/');
+ expect(wrapper.text()).toContain(PAY_BTN_DIVIDER);
expect(wrapper.text()).toContain('75.34');
expect(wrapper.getDOMNode().nodeName).toBe('BUTTON');
diff --git a/packages/playground/src/pages/GiftCards/GiftCards.html b/packages/playground/src/pages/GiftCards/GiftCards.html
index e405bd16e8..c009ea81c5 100644
--- a/packages/playground/src/pages/GiftCards/GiftCards.html
+++ b/packages/playground/src/pages/GiftCards/GiftCards.html
@@ -129,8 +129,9 @@ Gift Card Component (w/ Sessions)
+