#Empress Brosephine - boilerplate

1 messages · Page 1 of 1 (latest)

spare nebula
#

This is what we're receiving
js Lesson Signup
1) "before all" hook for "Should not find any Invalid/Hardcoded PubKey in the BeforeAll Hook Check:3.0"

Setup Intents Route
2) "before all" hook for "Should attach only one Payment Method per Customer:3.28"

0 passing (11s)
2 failing

  1. Lesson Signup
    "before all" hook for "Should not find any Invalid/Hardcoded PubKey in the BeforeAll Hook Check:3.0":
    CypressError: Timed out retrying after 4050ms: cy.click() failed because this element:

<button class="lesson-book" id="first">Book now!</button>

is being covered by another element:

`<div class="lesson-form">...</div>

The issue is we are even trying to send Stripes provided boilerplate without changes and its still bugging out

marble comet
#

Thanks Pompey and hello again! 🙂

spare nebula
#

Hello again!

#

I am a bit unclear on the Stripe error here, what is happening?

marble comet
#

No worries, so Stripe has a certification for partners that is to basically wire up a React app to work with SetupIntents.

Once you submit a PR to github though, Stripe runs a Cypress test suite on it. The issue we're running into is that for some reason, Cypress is rejecting the DOM set up by Stripe in the boilerplate. The subside to that issue is that the certification says not to manipulate DOM elements so we're kind of at a standstill here

#


  Lesson Signup
    1) "before all" hook for "Should not find any Invalid/Hardcoded PubKey in the BeforeAll Hook Check:3.0"

  Setup Intents Route
    2) "before all" hook for "Should attach only one Payment Method per Customer:3.28"


  0 passing (10s)
  2 failing

  1) Lesson Signup
       "before all" hook for "Should not find any Invalid/Hardcoded PubKey in the BeforeAll Hook Check:3.0":
     CypressError: Timed out retrying after 4050ms: `cy.click()` failed because this element:

`<button class="lesson-book" id="first">Book now!</button>`

is being covered by another element:

`<div class="lesson-form">...</div>`

is the full error readout from Cypress

#

@spare nebula I might've fixed it....waiting on the test to run now

spare nebula
#

That is good to hear!

marble comet
#

I think the React Boilerplate Stripe provides though has some issues lol

spare nebula
#

Gotcha. If you have specific fixes I'd definitely say to write in to our support team about them so that we can raise that as feedback and potentially fix

marble comet
#

false alarm....didn't work again

spare nebula
#

Gotcha. Unfortunately I'm not that familiar with that process so I'd say reach out to our support team about this. The person you initially talk to might not know how to fix this but they should be able to put you in contact with someone who does https://support.stripe.com/?contact=true

marble comet
#

No worries will do. Thank you!

#

Not sure if you folks document this, but the solution is to remove anything from the return statement for RegistrationForm.js when selected is false