cumulocity-cypress
Version:
Cypress commands for Cumulocity IoT
19 lines (18 loc) • 614 B
TypeScript
import { mount } from "cypress/angular";
import "./auth";
import "../../c8ypact";
import "./intercept";
import "./oauthlogin";
declare global {
namespace Cypress {
interface Chainable {
/**
* Mount a Cumulocity Angular component. When mounting the component FetchClient
* provider will be C8yPactFetchClient to enable recording and mocking of
* requests and responses. Set base url with C8Y_BASEURL or C8Y_HOST and pass
* authentication via cy.getAuth() or cy.useAuth().
*/
mount: typeof mount;
}
}
}