magnificent-finland-58048
05/12/2022, 5:11 PMgifted-boots-63851
05/12/2022, 6:15 PMgray-kilobyte-89541
05/12/2022, 7:43 PMhundreds-father-43644
05/12/2022, 7:48 PMpolite-painting-51763
05/12/2022, 7:58 PMpolite-painting-51763
05/12/2022, 7:59 PMpolite-painting-51763
05/12/2022, 8:00 PMpolite-painting-51763
05/12/2022, 8:08 PMpolite-painting-51763
05/12/2022, 8:10 PMpolite-painting-51763
05/12/2022, 8:11 PMgray-kilobyte-89541
05/12/2022, 8:57 PMbored-school-78265
05/13/2022, 2:19 AMGET /__cypress/tests?p=cypress/integration/a1/quote/landlord.spec.ts 200 2558.074 ms - -
GET /__cypress/iframes/integration%2Fa1%2Fquote%2Flandlord.spec.ts 304 2.182 ms - -
GET /__cypress/iframes/integration%2Fa1%2Fquote%2Flandlord.spec.ts 304 3.185 ms - -
GET /__cypress/runner/popper.js.map 404 3.957 ms - 136
[BABEL] Note: The code generator has deoptimised the styling of /Users/jason/src/goodcover/core/e2e/protobuf/basic.proto.js as it exceeds the max of 500KB.
Webpack Compilation Error
[ERROR] Failed to read file: `/Users/jason/src/goodcover/core/e2e/cypress/screenshots/a1/quote/landlord.spec.ts`.
[ERROR] Compilation failed.
I have made some webpack modifications which I am sure am relevant. I just can't find where the "Failed to read file" is coming from.
It happens repeatedly with cypress open
but with cypress run
it only happens every now and then so maybe some kind of race condition?limited-keyboard-75773
05/13/2022, 3:39 AMbored-school-78265
05/13/2022, 3:42 AMstats.hasErrors()
. That has the "Failed to read file" error in it and so the preprocessor logs "Webpack Compilation Error". I didn't see the Babel one there so that must just be a warning like that SO answer says.bored-school-78265
05/13/2022, 3:53 AMbored-school-78265
05/13/2022, 4:02 AMnutritious-florist-21582
05/13/2022, 5:29 AMcypress-cucumber-preprocessor
Question: Can you have optional and alternate text in your step definitions?
Example optional text:
//my.feature
Given I am 1 year old
Given I am 30 years old
//steps.js
Given(/^I am {int} year(s) old$/, (age) => {
...
}
Example alternate text:
//my.feature
When I click that like button
When I smash that like button
When I tap that like button
//steps.js
When(/^I (click|smash|tap) that like button$/, ()=> {
...
}
Note that these currently didn't match the cucumber feature file to any of my steps, but demonstrate the question.sparse-insurance-21987
05/13/2022, 9:23 AMnutritious-florist-21582
05/13/2022, 9:24 AMsparse-insurance-21987
05/13/2022, 9:26 AMhundreds-father-43644
05/13/2022, 11:39 AMcreamy-train-56346
05/13/2022, 11:57 AMWhen I try to invoke jQuery text method on each element only one (again the last one) return some string. Subsequent text attempt fails with following error:
)gray-kilobyte-89541
05/13/2022, 12:10 PMgray-kilobyte-89541
05/13/2022, 12:11 PMhundreds-father-43644
05/13/2022, 12:12 PMcreamy-train-56346
05/13/2022, 12:34 PMgetAll()
function as a promise and using it like getAll().then()
could be solution here?gray-kilobyte-89541
05/13/2022, 12:46 PMcy.then
is not a promise and it would not work to use your promise to "collect" Cypress command results. Are you just trying to get some text from elements on the page?creamy-train-56346
05/13/2022, 12:54 PMinvoke(text)
is just for debugging purposes. I want to return an array of elements in order to perform common actions for each of them. The catch is in order to follow POM I also want to separate selectors (logic) with actual tests performed for elements.creamy-train-56346
05/13/2022, 12:57 PMgray-kilobyte-89541
05/13/2022, 1:20 PM