colossal-match-42171
12/06/2022, 2:05 PMcolossal-match-42171
12/06/2022, 2:06 PMbumpy-insurance-8581
12/06/2022, 2:17 PMbumpy-insurance-8581
12/06/2022, 2:19 PMbumpy-insurance-8581
12/06/2022, 2:20 PMmillions-scientist-9990
12/06/2022, 2:24 PMbumpy-insurance-8581
12/06/2022, 2:31 PMdocker run -v $PWD:/e2e -w /e2e -e
CYPRESS_baseUrl=your_url -your_options -c \"umask 0000; cypress run --browser chrome --headless\ "
bumpy-insurance-8581
12/06/2022, 2:31 PMstrong-chef-89202
12/06/2022, 2:40 PMtypescript
it('will type the username first', () => {
cy.log("test");
get_username().then(username=>{
cy.get("#userid").type(username);
});
cy.get('#next-btn').click();
})
it('will click the button first', () => {
get_username().then(username=>{
cy.get("#userid").type(username);
});
cy.get('#next-btn').click();
})
Why does the cy.log
in the first test change the behavior? For running async code in cypress test I could not really find anything. How is the right way to do it? (I must use async with this function since it depends on other async functions I have no control over).green-jordan-14676
12/06/2022, 3:02 PMlate-planet-4481
12/06/2022, 3:19 PMgray-kilobyte-89541
12/06/2022, 3:21 PMnutritious-baker-94202
12/06/2022, 5:21 PMnutritious-baker-94202
12/06/2022, 6:00 PMhundreds-rainbow-52802
12/06/2022, 7:13 PMbitter-fountain-36713
12/06/2022, 7:56 PMgray-kilobyte-89541
12/06/2022, 8:18 PMif (cy.get('...)) { ...
is wrong. Try using https://github.com/bahmutov/cypress-ifhundreds-rainbow-52802
12/06/2022, 8:37 PMthousands-gpu-36872
12/06/2022, 8:46 PMadorable-smartphone-87280
12/07/2022, 12:01 AMfierce-activity-35946
12/07/2022, 1:10 AM12.0.0 Cypress
has changed how `.next() `command behaves? I don't see any mention in the changelog but this command throws a weird error nowlemon-holiday-89994
12/07/2022, 3:40 AMtimeout
syntax, but couldn't make it workfew-architect-79620
12/07/2022, 3:41 AMnutritious-artist-49849
12/07/2022, 7:47 AMacceptable-hamburger-48790
12/07/2022, 8:16 AMnutritious-artist-49849
12/07/2022, 8:26 AMfresh-doctor-14925
12/07/2022, 9:12 AMfew-oyster-82478
12/07/2022, 9:59 AMfew-oyster-82478
12/07/2022, 10:00 AMquiet-tent-87246
12/07/2022, 10:14 AMCannot set property message of [object DOMException] which has only a getter
from doing cy.get('a').invoke('removeAttr', 'target').click();