forked from verdnatura/salix-front
fix: refs #7889 fixed shortcut test
This commit is contained in:
parent
ef98f60486
commit
ba7497f055
|
@ -9,23 +9,23 @@ describe('VnShortcuts', () => {
|
||||||
monitor: 'm',
|
monitor: 'm',
|
||||||
order: 'p',
|
order: 'p',
|
||||||
supplier: 'p',
|
supplier: 'p',
|
||||||
entry: '€',
|
entry: 'e',
|
||||||
zone: 'z',
|
zone: 'z',
|
||||||
account: 'u',
|
account: 'u',
|
||||||
};
|
};
|
||||||
beforeEach(() => {
|
|
||||||
cy.login('developer');
|
|
||||||
cy.visit('/');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should visit each module', () => {
|
it('should visit each module', () => {
|
||||||
|
cy.login('developer');
|
||||||
|
cy.visit('/');
|
||||||
Object.keys(modules).forEach((module) => {
|
Object.keys(modules).forEach((module) => {
|
||||||
const shortcut = modules[module];
|
const shortcut = modules[module];
|
||||||
|
|
||||||
cy.get('body').type(`{ctrl}{alt}${shortcut}`);
|
cy.get('body').click();
|
||||||
|
cy.get('body').type(`{ctrl+alt+${shortcut}}`);
|
||||||
|
|
||||||
cy.url().should('include', module);
|
if (shortcut != 'u' && shortcut != 'o') {
|
||||||
cy.get('body').should('be.visible');
|
cy.get('.q-table__middle').should('be.visible');
|
||||||
|
}
|
||||||
|
|
||||||
cy.visit('/');
|
cy.visit('/');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue