forked from verdnatura/salix-front
fix: refs #6891 worker tests
This commit is contained in:
parent
328c54deee
commit
a7af5d43a2
|
@ -6,8 +6,6 @@ describe('WorkerList', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should open the worker summary', () => {
|
it('should open the worker summary', () => {
|
||||||
cy.get('.bg-header > :nth-child(2) > .full-width > :nth-child(1) >').type(
|
cy.get('.q-drawer .q-form input[aria-label="Name"]').type('jessica jones{enter}');
|
||||||
'jessica jones{enter}'
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,7 +2,7 @@ describe('WorkerLocker', () => {
|
||||||
const workerId = 1109;
|
const workerId = 1109;
|
||||||
const lockerCode = '2F';
|
const lockerCode = '2F';
|
||||||
const input = '.q-card input';
|
const input = '.q-card input';
|
||||||
const firstOpt = '[role="listbox"] .q-item:nth-child(1)';
|
const thirdOpt = '[role="listbox"] .q-item:nth-child(3)';
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('productionBoss');
|
cy.login('productionBoss');
|
||||||
|
@ -11,8 +11,8 @@ describe('WorkerLocker', () => {
|
||||||
|
|
||||||
it('should allocates a locker', () => {
|
it('should allocates a locker', () => {
|
||||||
cy.get(input).click();
|
cy.get(input).click();
|
||||||
cy.get(input).type(lockerCode);
|
cy.waitForElement('[role="listbox"]');
|
||||||
cy.get(firstOpt).click();
|
cy.get(thirdOpt).click();
|
||||||
cy.saveCard();
|
cy.saveCard();
|
||||||
cy.get(input).invoke('val').should('eq', lockerCode);
|
cy.get(input).invoke('val').should('eq', lockerCode);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue