broad-flag-64487
12/11/2021, 12:07 AMmelodic-apple-72412
12/13/2021, 11:33 AM@4tw/cypress-drag-drop
.move method, unfortunately no success. I have created a simple project with my application. If someone could help me, will be great. https://github.com/mekalag/cypressProj.gitgreat-potato-68972
12/13/2021, 1:36 PMhandsome-cartoon-58565
12/13/2021, 6:29 PMdocker-compose.yml
file:
yml
cypress:
image: "cypress/included:4.4.0"
container_name: pev-cypress
depends_on:
- node
environment:
- CYPRESS_baseUrl=http://127.0.0.1:${APP_INTERNAL_PORT}
working_dir: /e2e
volumes:
- ./test/e2e/:/e2e
fast-cpu-20763
12/14/2021, 5:12 PMjs
<form action="/products/add-to-cart" id="purchase-form" method="post" role="form" novalidate="novalidate">
<div class="form-inline" role="form">
<label>Quantity:</label>
<input type="number" step="1" class="form-control numbers-only valid" aria-label="Quantity" value="1" min="1" id="quantity">
<a href="javascript:void(0);" class="btn btn-secondary" id="add-to-cart"><span class="novicon novicon-cart"></span>Add to Cart</a>
</div>
</form>
I noticed that in the case of Cypress the button is unresponsive and nothing happens on clicking on it manually as well, but it works fine generally. What is the reason for this? Why is it not working?ancient-wire-34126
12/14/2021, 6:05 PMfast-cpu-20763
12/15/2021, 5:15 AMadventurous-country-21192
12/15/2021, 11:17 AMadventurous-country-21192
12/15/2021, 11:19 AMbig-pharmacist-23494
12/15/2021, 12:36 PMmelodic-apple-72412
12/17/2021, 3:05 PMwonderful-match-15836
12/17/2021, 11:01 PMbroad-potato-69393
12/18/2021, 7:21 PMwonderful-match-15836
12/20/2021, 12:57 AMquiet-tent-29166
12/20/2021, 11:46 PMbroad-potato-69393
12/21/2021, 4:20 AMquiet-tent-29166
12/21/2021, 2:00 PMbroad-potato-69393
12/21/2021, 3:15 PMfuture-eye-56254
12/21/2021, 9:26 PMimportant-river-75795
12/21/2021, 10:13 PMquiet-tent-29166
12/21/2021, 10:23 PMimportant-river-75795
12/21/2021, 10:26 PMuser
12/22/2021, 9:58 AM@cypress/vue
, @cypress/webpack-dev-server
etc?user
12/22/2021, 9:59 AMuser
12/22/2021, 10:02 AMuser
12/22/2021, 11:28 AMshould
command to add custom assertions, new 9.2 types mark subject
as the assertion name (eg. have.color
) and expectation
as the assertion parameter type
Is this correct? I think something is off, I would expect subject
to be some kind of value chained from expect()
, expectation
as the assertion name and the assertion parameter type into following argsuser
12/22/2021, 11:33 AMts
declare global {
namespace Cypress {
interface Chainer<Subject> {
/**
* `have.css` matcher compares the computedColor, which is a rgb() value.
* This custom matcher instead accept any valid CSS color format.
*
* @example
* cy.get('foo').should('have.color', 'white')
* cy.get('foo').should('have.color', '#fff')
* cy.get('foo').should('have.color', 'var(--q-primary)')
*/
(chainer: 'have.color', type: string): Chainable<Subject>;
}
}
}
Cypress.Commands.overwrite(
'should',
(originalFn, subject, expectation, ...args) => {
// subject has type `have.color` here
// expectation has type `string` here
if (expectation === 'have.color') {
return originalFn(subject, () => { /* ... */ });
}
return originalFn(subject, expectation, ...args);
},
);
user
12/22/2021, 12:13 PMtall-airplane-97209
12/23/2021, 6:36 AMcy.get('[data-cy=specialInstructions]').should('be.visible').clear().type("Text Here")
Around 50-60% of the time in CI-CD I only get the "Here" or sometimes "x Here" etc. - How is this possible? My understanding is the should be visible chainer wouldn't let Cypress try and type anything until the component is ready?cold-terabyte-49897
12/23/2021, 8:33 AM