acceptable-hamburger-48790
09/30/2022, 12:35 PMgentle-accountant-4760
09/30/2022, 12:37 PMacceptable-hamburger-48790
09/30/2022, 12:40 PMgentle-accountant-4760
09/30/2022, 12:40 PMacceptable-hamburger-48790
09/30/2022, 12:40 PMgentle-accountant-4760
09/30/2022, 12:42 PMts
BarryApi.itemLists('https://barrythrill.com');
how else will it know which url you want to do a request too?acceptable-hamburger-48790
09/30/2022, 12:43 PMacceptable-hamburger-48790
09/30/2022, 12:44 PMgentle-accountant-4760
09/30/2022, 12:45 PMts
BarryApi.itemLists('https://barrythrill.com');
cy.get("@itemList").then((itemList) => {// continue what you want here};
acceptable-hamburger-48790
09/30/2022, 12:45 PMgentle-accountant-4760
09/30/2022, 12:45 PMgray-kilobyte-89541
09/30/2022, 3:05 PMwait-on
before starting Cypress. And yes, look at the docs, there are lots of options for timeoutsgray-kilobyte-89541
09/30/2022, 3:06 PMmysterious-belgium-25713
09/30/2022, 3:31 PMjs
cy.visit('/index.html', { timeout: 30000 })
acceptable-tailor-43291
09/30/2022, 3:37 PMnutritious-megabyte-64190
09/30/2022, 3:40 PMaverage-tomato-41838
09/30/2022, 4:24 PMimport { BasePage } from './basePage';
export class xdInteriorInspection extends BasePage {
// Element getters
confirmFuel(): Cypress.Chainable<JQuery<HTMLElement>> {
return cy.contains('.jss2', "Confirm");
}
continueButton(): Cypress.Chainable<JQuery<HTMLElement>> {
return cy.get('.jss26 > .jss16 > .MuiButtonBase-root');
}
// Interior damage confirmation
clickConfirmFuel() {
this.confirmFuel().click({ force: true });
}
clickContinueButton() {
this.continueButton().click({ force: true });
}
}
when I try to execute a click , it does nothing , I call it like this:
interiorInspection.confirmFuel();average-tomato-41838
09/30/2022, 4:26 PMrough-night-37887
09/30/2022, 4:29 PMrough-night-37887
09/30/2022, 5:19 PMpowerful-gigabyte-69168
09/30/2022, 6:13 PMstack
property to uncaught application errors? I am getting a type error TypeError: Cannot create property 'stack' on string 'Forbidden'
that I suspect is coming from cypress attempting to update an error to have a stack
attribute, when it's actually receiving a string. Does that seem plausible?mysterious-belgium-25713
09/30/2022, 6:28 PMgray-kilobyte-89541
09/30/2022, 6:45 PMresolve
thing there? I think you are using cy.intercept
incorrectlyrough-night-37887
09/30/2022, 7:32 PMgray-kilobyte-89541
09/30/2022, 8:26 PMcy.wait(...).its('response.body').then(res => ...)
? No? You could benefit from this course https://cypress.tips/courses/network-testinggreat-answer-57072
10/01/2022, 1:18 AMgreat-answer-57072
10/01/2022, 1:33 AMgreat-answer-57072
10/01/2022, 1:34 AMgreat-answer-57072
10/01/2022, 1:35 AMred-toddler-79937
10/01/2022, 1:59 PMhtml
<mat-tab data-testid="new-tab-title">
```Does anyone know how I can fix this?
E2E:
```ts
describe('Restaurant orders overview', () => {
beforeEach(() => {
initializeDesktop();
login();
addNewRestaurantProduct(1)
cy.visitPage('orders', 'restaurant-orders');
});
describe('New orders', () => {
it('Should have at least one new order', () => {
cy.findAllByTestId('new-tab-title');
});
});
Does anyone know why it can't find the Cypress test id?