From fd386a14d311a89d03eab75f8aafeefec97181b2 Mon Sep 17 00:00:00 2001 From: Jesse Shawl Date: Tue, 3 Oct 2023 13:58:59 -0500 Subject: [PATCH] Remove PPoF test --- test/integration/tests/button/size.js | 95 --------------------------- 1 file changed, 95 deletions(-) diff --git a/test/integration/tests/button/size.js b/test/integration/tests/button/size.js index d8ae832a15..f0cc883fa4 100644 --- a/test/integration/tests/button/size.js +++ b/test/integration/tests/button/size.js @@ -147,101 +147,6 @@ describe(`paypal button component sizes`, () => { .render(container); }); - it("should render a responsive PPoF button in the medium spectrum with menu button displayed", (done) => { - done = once(done); - - const containerWidth = 250; - - const container = createElement( - "div", - { - style: { - width: `${containerWidth}px`, - height: "100px", - }, - }, - getElement("#testContainer") - ); - - const fundingSource = FUNDING.PAYPAL; - const content = testContent; - const wallet = { - [fundingSource]: { - instruments: [ - { - accessToken: null, - instrumentID: "abc12345", - label: "••1234", - logoUrl: null, - oneClick: true, - planID: null, - secondaryInstruments: [ - { - instrumentID: "BALANCEUSD", - label: "PayPal Balance", - type: "BALANCE", - }, - ], - tokenID: null, - type: "card", - vendor: "VISA", - }, - ], - }, - }; - - window.paypal - .Buttons({ - content, - - fundingSource, - - wallet, - - showPayLabel: false, - - style: { - layout: "horizontal", - tagline: false, - }, - - test: {}, - - createOrder() { - done(new Error("Expected createOrder() to not be called")); - }, - - onApprove() { - done(new Error("Expected onApprove() to not be called")); - }, - - onRendered() { - setTimeout(() => { - const paypalButton = getElementRecursive(".paypal-button"); - const paypalButtonWidth = paypalButton.offsetWidth; - const menuButton = getElementRecursive(".menu-button"); - - if (!menuButton) { - return done( - new Error("Expected menu button to be rendered to the DOM") - ); - } - - if (paypalButtonWidth === containerWidth) { - return done( - new Error( - "Menu button should be visibile at >= 250px button width, but is scrolled out of view" - ) - ); - } - - return done(); - }, 100); - }, - }) - .render(container); - }); - it("should render a responsive button in the large spectrum", (done) => { done = once(done);