23 lines
496 B
TypeScript
23 lines
496 B
TypeScript
/* eslint-disable @typescript-eslint/no-namespace */
|
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
|
|
Cypress.Commands.add('getManagementInfo', () => {
|
|
return cy
|
|
.request({
|
|
method: 'GET',
|
|
url: '/management/info',
|
|
})
|
|
.then(response => response.body);
|
|
});
|
|
|
|
declare global {
|
|
namespace Cypress {
|
|
interface Chainable {
|
|
getManagementInfo(): Cypress.Chainable;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Convert this to a module instead of a script (allows import/export)
|
|
export {};
|