narrow-arm-9964
01/12/2023, 2:30 AMresource group
, I think you want to intercept/wait (https://docs.cypress.io/api/commands/wait#Alias)great-oil-15113
01/12/2023, 3:49 AMCypress.on('test:after:run'
but it just ignores the reporterpurple-afternoon-2408
01/12/2023, 4:45 AMadorable-smartphone-87280
01/12/2023, 5:03 AMsome-keyboard-52751
01/12/2023, 5:20 AMpurple-afternoon-2408
01/12/2023, 6:25 AMsome-keyboard-52751
01/12/2023, 6:29 AMlemon-oxygen-25956
01/12/2023, 8:42 AMmodern-gpu-24079
01/12/2023, 8:46 AMswift-kitchen-62493
01/12/2023, 8:48 AM"captcha": {
"type": "xxxx",
"value": "xxxx"
}
how can I implement it to make it work?swift-kitchen-62493
01/12/2023, 9:14 AMmysterious-psychiatrist-29678
01/12/2023, 11:26 AMmysterious-psychiatrist-29678
01/12/2023, 12:09 PMmysterious-psychiatrist-29678
01/12/2023, 12:48 PMCypress.on('uncaught:exception', (err, runnable) => {
return false;
});
mammoth-animal-49690
01/12/2023, 3:28 PMmammoth-animal-49690
01/12/2023, 3:28 PMdescribe('Tour Plan Detail View', () => {
beforeEach(() => {
cy.on('uncaught:exception', (err, runnable) => {
// log the error to the console
console.error(err);
console.log(runnable);
// return false to prevent the error from failing the test
return false;
});
cy.login(Cypress.env('userEmail'), Cypress.env('userPassword'));
});
it('Check if selecting vehicle is working', () => {
cy.visit('/');
cy.intercept('https://xxx.xx/api/v2/vehicles').as('vehicles');
cy.wait('@vehicles');
cy.get('[data-test-id="vehicle-selection"]')
.should('exist')
.click();
cy.get('.q-item span').contains('SHA-BE 201').click();
cy.get('[data-test-id="add-vehicle"]').click();
cy.intercept('https://xxx.xx/api/v2/tour_plans?vehicle=201&dates=[2023-01-11,+2023-01-12,+2023-01-13]').as('tourplan-res');
cy.wait('@tourplan-res');
});
it('Get tour plan for vehicle', () => {
cy.visit('/');
cy.get('h4').contains('VerfĂĽgbare Tour/en');
});
});
I had to add uncaught:exception cause I am using pouchdb and it throws errors.mammoth-animal-49690
01/12/2023, 3:29 PMorange-cricket-43285
01/12/2023, 3:32 PM[data-testid=\'wizard-step-next\']
)
.find('button')
.should('not.have.attr', 'disabled');
if (gridToWaitFor) {
cy.getGrid(gridToWaitFor).find('ejs-grid').should('be.visible');
}cool-truck-21040
01/12/2023, 3:59 PMcool-truck-21040
01/12/2023, 6:51 PMdamp-oxygen-34939
01/12/2023, 7:19 PMgray-kilobyte-89541
01/12/2023, 8:10 PMbland-machine-99046
01/13/2023, 4:21 AMbland-machine-99046
01/13/2023, 4:22 AMrich-mechanic-52238
01/13/2023, 5:22 AMmodern-dawn-86006
01/13/2023, 8:07 AMmodern-dawn-86006
01/13/2023, 8:08 AMnutritious-hydrogen-65702
01/13/2023, 11:50 AMgray-kilobyte-89541
01/13/2023, 11:56 AMrich-appointment-44286
01/13/2023, 11:57 AM