Initial version of smartbooking generated by generator-jhipster@9.0.0-beta.0
This commit is contained in:
22
src/test/javascript/cypress/support/management.ts
Normal file
22
src/test/javascript/cypress/support/management.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/* 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 {};
|
||||
Reference in New Issue
Block a user