flat-waitress-43696
05/22/2022, 11:37 AMflat-waitress-43696
05/22/2022, 11:37 AMfresh-doctor-14925
05/22/2022, 11:42 AMflat-waitress-43696
05/22/2022, 12:16 PMfresh-doctor-14925
05/22/2022, 1:07 PMbetter-house-96424
05/22/2022, 8:17 PMfresh-doctor-14925
05/22/2022, 9:12 PMbeforeEach
step in your support file as is suggested here
https://stackoverflow.com/questions/48110258/how-can-i-execute-code-before-all-tests-suite-with-cypress. Then it will automatically happen before every single testbetter-house-96424
05/22/2022, 11:17 PMbeforeEach
method though wouldn't it slow down the tests reading and parsing a huge file (30,000 lines) before every test?
I was hoping to find a way to set it up once before running all the tests. Does cypress have a beforeAll?broad-salesclerk-78343
05/22/2022, 11:26 PMfresh-doctor-14925
05/23/2022, 6:14 AMfresh-breakfast-88964
05/23/2022, 9:30 AMhigh-optician-91398
05/23/2022, 10:09 AMgetSelBy
which should return Chainable<Element>
but it complains unless I return Chainable<JQuery<Element>>
I don't know if that is important or it is just a wrapper. Maybe I am missing some types or imports. Thanks!famous-truck-12698
05/23/2022, 11:32 AMthousands-school-59219
05/23/2022, 11:48 AMcalm-hydrogen-37718
05/23/2022, 11:50 AMdazzling-angle-28206
05/23/2022, 12:31 PMplain-pencil-82789
05/23/2022, 1:14 PMfamous-family-87715
05/23/2022, 2:26 PMthousands-school-59219
05/23/2022, 2:30 PMicy-exabyte-68383
05/23/2022, 3:57 PMsparse-angle-84185
05/23/2022, 4:03 PMsparse-angle-84185
05/23/2022, 4:03 PMgray-kilobyte-89541
05/23/2022, 7:10 PMmagnificent-finland-58048
05/23/2022, 8:07 PMcalm-hydrogen-37718
05/24/2022, 7:26 AMpowerful-gigabyte-69168
05/24/2022, 1:25 PMcy.window().its('app.$store')
like it shows in this article: https://www.cypress.io/blog/2017/11/28/testing-vue-web-application-with-vuex-data-store-and-rest-backend/
But in vue3 with composition api, there is no centralized store, just many individual stores that can (or not) be consumed by each component via an import of a useSomeStore()
function. This function doesn't appear to be consumable directly in cypress tests, so I'm wondering how to access my pinia stores in cypresspurple-appointment-88654
05/24/2022, 2:13 PMpowerful-gigabyte-69168
05/24/2022, 2:15 PMgray-kilobyte-89541
05/24/2022, 2:24 PMfamous-family-87715
05/24/2022, 4:36 PM