20 lines
544 B
JavaScript
20 lines
544 B
JavaScript
describe('FixedAssetDescriptor', () => {
|
|
const selectors = {
|
|
listItem: '[role="menu"] .q-list .q-item',
|
|
deleteOpt: 'Delete fixed asset',
|
|
};
|
|
|
|
beforeEach(() => {
|
|
cy.viewport(1280, 720);
|
|
cy.login('developer');
|
|
cy.visit('#/fixed-asset/2/summary');
|
|
});
|
|
|
|
it('should delete the fixed-asset', () => {
|
|
cy.openActionsDescriptor();
|
|
cy.contains(selectors.listItem, selectors.deleteOpt).click();
|
|
cy.clickConfirm();
|
|
cy.checkNotification('Data deleted');
|
|
});
|
|
});
|