Questions tagged [cypress-custom-commands]

111 questions
-1
votes
1 answer

Cypress: Error: Getting ESOCKETTIMEDOUT when using cy.visit()

Brand new project. I am simply trying to access adobe.com but getting a ESOCKETTIMEDOUT error. Given this is a new project, I doubt anything is wrong with the code. I am on MACOS 12.6.1 Monterey with no firewall on. Any settings/changes I need to…
-1
votes
1 answer

What is the Cypress best practice for selecting a random element from a list?

I often come accross lists in the react front ends that I'm currently writing tests for. I wrote this command: Cypress.Commands.add("click_list", (list_entry) => { Cypress.log({ name: "Choose element from list: ", }) …
MajinBoo
  • 307
  • 1
  • 2
  • 10
-1
votes
2 answers

how to trim extra spaces from an selected locator value and convert it to integer so assertion of greater than is performed over it in cypress?

i have the grid which has html as follow

Successfull

-1
votes
1 answer

Cypress get the length of a row without having any table body

I have the following code from the picture and the website, how can I make an assertion that the row has a 4 length? And how i say in the tittle , it is not a table body :( Thank you!!! https://i.stack.imgur.com/vqbfA.png …
-2
votes
1 answer

creating tasks in cypress.config.js is not working

I have a task like this in cypress.config.js async function setupNodeEvents(on, config) { allureWriter(on, config); await preprocessor.addCucumberPreprocessorPlugin(on, config); on('task', { downloadFile }); on( "file:preprocessor", …
paul
  • 4,333
  • 16
  • 71
  • 144
1 2 3 4 5 6 7
8