#MarkoBoras

1 messages · Page 1 of 1 (latest)

torn horizonBOT
marsh rune
#

We don't have official guide on Cypress unfortunately

obtuse torrent
#

Okay.

#

I've noticed that you have added data-cy selectors on checkout

#

Do you maybe have information will they change in the future

#

or that is standard to keep those names

marsh rune
#

I've noticed that you have added data-cy selectors on checkout
Could you elaborate on this part?

obtuse torrent
#

Followed this article

#

cy.get("#cardNumber").type("4242424242424242")

#

This selector "#cardNumber" was predefined by stripe

marsh rune
#

I am not familiar since that's not our public Doc. It is largely depends on the URL on cy.request, isn't it?

obtuse torrent
#

yeah

#

I mean selectors are same

#

on different urls

#

but neverthless nevermind if there is no support for checkout and cypress

#

is there maybe any plan in future for that?

marsh rune
#

I don't think we will have that very soon. But I do think you can try yourself by inspecting Stripe Checkout page and see what selector you can use

obtuse torrent
#

We have one issue

marsh rune
#

However speaking generally, Checkout is Stripe owned website so you don't need to test it

obtuse torrent
#

Yeah but I need to create subscription

#

I am creating it through checkout

shrewd goblet
#

👋 taking over for my colleague. Let me catch up.

obtuse torrent
#

Ok

shrewd goblet
#

what is the full scenario you're trying to test?

obtuse torrent
#

I select plan in my app and user is redirected to stripe checkout where he makes payment and his subscription is created.

#

The part where is user redirected to checkout and makes payment is problem

#

I can't access checkout in cypress

shrewd goblet
#

you can't really perform e2e tests with Stripe

#

we test this workflow so you don't have to