colossal-farmer-50435
08/10/2022, 2:06 PMcy.request
where I need to send files (multipart/form-data)?glamorous-country-57678
08/11/2022, 1:08 AMsalmon-horse-6473
08/11/2022, 7:47 AMclever-house-82088
08/11/2022, 8:42 AMacceptable-hamburger-48790
08/11/2022, 9:36 AMbrash-ghost-16880
08/11/2022, 9:44 AMacceptable-hamburger-48790
08/11/2022, 9:45 AMbrash-ghost-16880
08/11/2022, 9:47 AMacceptable-hamburger-48790
08/11/2022, 9:48 AMbrash-ghost-16880
08/11/2022, 10:45 AMacceptable-hamburger-48790
08/11/2022, 10:55 AMacceptable-hamburger-48790
08/11/2022, 10:58 AMhigh-raincoat-69564
08/11/2022, 11:53 AMhappy-dinner-13480
08/11/2022, 12:14 PMjavascript
it('Save the business rule', () => {
cy.intercept({ method: 'POST', url: `${Cypress.env('API_URL')}/api/v1/company/*/businessRule?cache_buster=*` }).as('businessRule');
cy.el('btnSaveBusinessRule').click();
cy.get('@businessRule').should((response: any) => {
cy.wait(50).then(() => {
expect(response.response.statusCode).to.eq(200);
});
});
});
response.response.statusCode
gives the error cannot read undefined of statusCode
. For some reason the response
object is empty unless I add a wait
like I did above.acceptable-hamburger-48790
08/11/2022, 12:15 PMhappy-dinner-13480
08/11/2022, 12:17 PMget
it doesn't wait
for the POST to be complete?acceptable-hamburger-48790
08/11/2022, 12:17 PMhappy-dinner-13480
08/11/2022, 12:21 PMcy.wait('@businessRule').should()
or cy.wait('@businessRule').then()
they both work, but does it matter which syntax is used?acceptable-hamburger-48790
08/11/2022, 12:23 PMpolite-policeman-65273
08/11/2022, 1:55 PMToo long with no output (exceeded 10m0s): context deadline exceeded
I went through official cypress docs and issues but found only this one:
https://github.com/cypress-io/cypress/issues/21110
regrettably, it was put into the backlog by the cypress team
maybe Gleb or someone from the team could comment or point to the direction on how to approach the problem.
Thankshigh-raincoat-69564
08/11/2022, 2:29 PMno_output_timeout: 15m
If the testsuite is small, maybe the app itself hangs and blocks browser? check "resources" tab on CircleCI fopr CPU/RAMacceptable-solstice-90676
08/11/2022, 2:30 PMcold-van-45410
08/11/2022, 3:01 PMcold-van-45410
08/11/2022, 3:01 PMpolite-policeman-65273
08/11/2022, 3:25 PM--env USERNAME=$USERNAME, PASSWORD=$PASSWORD
flag was added to CMD in Dockerfilegray-kilobyte-89541
08/11/2022, 4:29 PMcold-van-45410
08/11/2022, 5:20 PMglamorous-country-57678
08/11/2022, 5:36 PMError: invalid contract address or ENS name (argument="addressOrName", value=undefined, code=INVALID_ARGUMENT, version=contracts/5.6.2)
.
My intercept for this request is:
`cy.intercept('POST', ${ethProvider}*
, {
fixture: 'ethProvider.json',
}).as('ethProvider')`
My guess is that my fixture data is not correct or I am not mocking the response properly. Here is a full view of cypress GUI:microscopic-crowd-9149
08/11/2022, 6:50 PMlemon-piano-67942
08/12/2022, 7:57 AM