salix-front/test/cypress/integration/vnComponent/VnShortcut.spec.js

34 lines
802 B
JavaScript

/// <reference types="cypress" />
describe('VnShortcuts', () => {
const modules = {
item: 'a',
customer: 'c',
ticket: 't',
claim: 'r',
worker: 'w',
monitor: 'm',
order: 'p',
supplier: 'p',
entry: 'e',
zone: 'z',
account: 'u',
};
it('should visit each module', () => {
cy.login('developer');
cy.visit('/');
Object.keys(modules).forEach((module) => {
const shortcut = modules[module];
cy.get('body').click();
cy.get('body').type(`{ctrl+alt+${shortcut}}`);
if (shortcut != 'u' && shortcut != 'o') {
cy.get('.q-table__middle').should('be.visible');
}
cy.visit('/');
});
});
});