chilly-vase-64353
06/07/2022, 11:37 PMchilly-vase-64353
06/07/2022, 11:38 PMabundant-dress-88149
06/08/2022, 1:30 AMout of memory
issue fixed by upgrading the chrome version from 83 to 89.future-action-21047
06/08/2022, 4:31 AM./cypress
file?
I had an existing feature branch to test cypress in my repo at a lower version of cypress (9.0). I upgraded to Cypress, but felt that the exiting libraries I had broke the migration. So I deleted the ./cypress directory., with the idea to regenerate the ./cypress
directory and play around with the new stuff.
However, when I re-opened Cypress it didn't give me the option to regenerate the ./cypress test files. I also attempted to do clear the cahce via npx cypress cache -clear
and also reinstalling cypress via cypress install -f
green-book-63455
06/08/2022, 6:38 AMbusy-vegetable-18177
06/08/2022, 6:45 AMjs
cy.get("selector for your input").then(input => {
// use input's value
})
green-book-63455
06/08/2022, 7:26 AMbusy-vegetable-18177
06/08/2022, 7:27 AMbusy-vegetable-18177
06/08/2022, 7:27 AMfresh-doctor-14925
06/08/2022, 7:33 AMcy.request
green-book-63455
06/08/2022, 8:09 AMfresh-doctor-14925
06/08/2022, 8:10 AMgreen-book-63455
06/08/2022, 8:33 AMbland-hospital-64234
06/08/2022, 8:42 AMGET - /todos
. This api will return the stubbed response(using cy.intercept
) I already specified, like followings.
javascript
[
{
id: 1,
name: "Buy milk",
isCompleted: false,
},
{
id: 2,
name: "Run Errand",
isCompleted: false,
},
{
id: 3,
name: "Clean house",
isCompleted: false,
}
]
But let's say now user visits the todolist website, and adds the todo item using POST - /todo
. So client will send the server data as follows.
javascript
{
id: 4,
name: "Go walk",
isCompleted: false,
}
How can I add this data that was sent with POST to the stubbed response I specified above? Eventually I want to return 4 list of todos.rough-magazine-51515
06/08/2022, 9:05 AMbusy-vegetable-18177
06/08/2022, 9:05 AMit.skip(...)
busy-vegetable-18177
06/08/2022, 9:06 AMdescribe.skip
busy-vegetable-18177
06/08/2022, 9:06 AMit.only
and describe.only
rough-magazine-51515
06/08/2022, 9:08 AMwhite-gpu-56286
06/08/2022, 9:16 AMwhite-gpu-56286
06/08/2022, 9:16 AMechoing-painting-40909
06/08/2022, 9:36 AMgreen-book-63455
06/08/2022, 11:25 AMgray-kilobyte-89541
06/08/2022, 12:09 PM{ times: ... }
option when defining an interceptfresh-doctor-14925
06/08/2022, 12:21 PMpurple-kilobyte-85592
06/08/2022, 12:46 PMhallowed-monkey-93167
06/08/2022, 12:57 PMwhite-gpu-56286
06/08/2022, 1:19 PMgentle-dress-1046
06/08/2022, 1:39 PMCypress.Commands.overwrite("as", (originalFn, alias) => {
debugger;
return originalFn(alias);
})
alias contains the selector and the element but not the provided name I give it , does someone know how can I get it?gentle-dress-1046
06/08/2022, 1:44 PM