I ran a test in Cypress that initially passed but then failed after 8 seconds with the following error:
"Cypress command timeout of '8710ms' exceeded."
Console log
Cypress Warning: It seems like you returned a promise in a test and also used cy commands inside that promise block.
The test title was:
Cics Switch Test Suite Default CICS Switch Tenant License Value
While this might work, it's considered an anti-pattern. Usually, you don't need to return a promise and use cy commands at the same time.
Cy commands already have built-in promises, so you can avoid using a separate promise in most cases.
This is my it
block of code
it("Default CICS Switch Tenant License Value", async () => {
loginPage.portalLogin(
quickregisterPage.userInfo.emailAddress,
quickregisterPage.userInfo.password
);
loginPage.logoDynatrace().should("be.visible");
trialLicenceDetailsPage
.getTrialLicenceDetailsPageTitle()
.should("have.text", "Trial license details");
});