7983-testToMaster_2438 #718

Merged
alexm merged 353 commits from 7983-testToMaster_2438 into master 2024-09-17 05:39:39 +00:00
1 changed files with 8 additions and 8 deletions
Showing only changes of commit ba7497f055 - Show all commits

View File

@ -9,23 +9,23 @@ describe('VnShortcuts', () => {
monitor: 'm',
order: 'p',
supplier: 'p',
entry: '',
entry: 'e',
zone: 'z',
account: 'u',
};
beforeEach(() => {
cy.login('developer');
cy.visit('/');
});
it('should visit each module', () => {
cy.login('developer');
cy.visit('/');
Object.keys(modules).forEach((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);
cy.get('body').should('be.visible');
if (shortcut != 'u' && shortcut != 'o') {
cy.get('.q-table__middle').should('be.visible');
}
cy.visit('/');
});