salmon-hospital-83463
06/08/2022, 2:01 PMpurple-kilobyte-85592
06/08/2022, 2:36 PMfull-journalist-87924
06/08/2022, 3:36 PMabundant-apple-80156
06/08/2022, 5:00 PM--reporter junit
runtime option?broad-cpu-74064
06/08/2022, 8:22 PMbroad-cpu-74064
06/08/2022, 8:25 PMbest-flower-17510
06/08/2022, 8:32 PMrough-monitor-85122
06/08/2022, 8:35 PMvictorious-painting-98529
06/08/2022, 10:45 PMchilly-queen-22182
06/09/2022, 12:00 AMfuture-action-21047
06/09/2022, 12:26 AMbland-hospital-64234
06/09/2022, 3:53 AMcool-dentist-94229
06/09/2022, 7:17 AMpowerful-orange-86819
06/09/2022, 7:46 AMcool-dentist-94229
06/09/2022, 7:48 AMpowerful-orange-86819
06/09/2022, 7:51 AMcool-dentist-94229
06/09/2022, 7:52 AMcool-dentist-94229
06/09/2022, 8:05 AMechoing-painting-40909
06/09/2022, 8:30 AMvalue
i meant, what's the added value of doing so?
As you are already stubbing your API, there is nothing special about the input values as you are providing them.
By computing data in place of your API, you are trying to see if the API acts the way you expect, that's not about the UI.bland-hospital-64234
06/09/2022, 9:02 AMvalue
is just string that's going to be typed in input.
> By computing data in place of your API, you are trying to see if the API acts the way you expect, that's not about the UI.
I think I have a little grasp of what you are trying to say. However, in my case I would like to make cypress type into the input, for example 'go for walk', and when add todo button is clicked, that's going to shoot the POST API on the server, however I want to intercept request body of this post and dynamically stub my initial GET todo list response.
For example it looks like this.
javascript
[
// Below 3 items are initial stubbed response
{
id: 1,
name: "Buy milk",
isCompleted: false,
},
{
id: 2,
name: "Run Errand",
isCompleted: false,
},
{
id: 3,
name: "Clean house",
isCompleted: false,
},
// When user clicks add todo button, dynamically add todo item by intercepting POST request.
{
id: 4,
name: "go for walk", // this value was typed by cypress
isCompleted: false,
}
]
And after this, I want to test my UI if 4th item was added. This is my thought process but please let me know if I am completely misunderstanding the test with cypress.echoing-painting-40909
06/09/2022, 9:09 AMechoing-painting-40909
06/09/2022, 9:16 AMbland-hospital-64234
06/09/2022, 9:18 AMbland-hospital-64234
06/09/2022, 9:18 AMechoing-painting-40909
06/09/2022, 9:22 AMbland-hospital-64234
06/09/2022, 9:25 AMimportant-zebra-22773
06/09/2022, 10:04 AMgray-kilobyte-89541
06/09/2022, 10:54 AMbrave-apartment-73149
06/09/2022, 1:46 PMcypress/included:10.0.3
image, but it falls appart with The Test Runner unexpectedly exited via a exit event with signal SIGSEGV
without any explanation.
docker-compose looks like this
version: '3'
services:
cypress:
image: "cypress/included:10.0.3"
environment:
- DEBUG=cypress:*
- DISPLAY=
command: "--browser chrome"
working_dir: /e2e
volumes:
- ./:/e2e
The main issue is that even with debug logs I don't understand what is wrong with my setup and why it is failing. And the most interesting part is that it is working fine with cypress/included:3.3.1
brave-apartment-73149
06/09/2022, 2:20 PM