25 lines
781 B
JavaScript
25 lines
781 B
JavaScript
describe('ClaimNotes', () => {
|
|
const descriptorOptions = '[data-cy="descriptor-more-opts-menu"] > .q-list';
|
|
const url = '/#/account/1/summary';
|
|
|
|
it('should see all the account options', () => {
|
|
cy.login('itManagement');
|
|
cy.visit(url);
|
|
cy.dataCy('descriptor-more-opts').click();
|
|
cy.get(descriptorOptions)
|
|
.find('.q-item')
|
|
.its('length')
|
|
.then((count) => {
|
|
cy.log('Número de opciones:', count);
|
|
expect(count).to.equal(5);
|
|
});
|
|
});
|
|
|
|
it('should not see any option', () => {
|
|
cy.login('salesPerson');
|
|
cy.visit(url);
|
|
cy.dataCy('descriptor-more-opts').click();
|
|
cy.get(descriptorOptions).should('not.be.visible');
|
|
});
|
|
});
|