2024-05-24 09:43:54 +00:00
|
|
|
describe('WorkerLocker', () => {
|
2024-09-06 07:05:29 +00:00
|
|
|
const productionId = 49;
|
2024-10-27 12:43:38 +00:00
|
|
|
const lockerCode = '4F';
|
|
|
|
const lockerSelect = '[data-cy="locker"]';
|
2024-05-10 14:01:32 +00:00
|
|
|
beforeEach(() => {
|
|
|
|
cy.viewport(1280, 720);
|
|
|
|
cy.login('productionBoss');
|
2024-09-06 07:05:29 +00:00
|
|
|
cy.visit(`/#/worker/${productionId}/locker`);
|
2024-05-10 14:01:32 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should allocates a locker', () => {
|
2024-10-27 12:43:38 +00:00
|
|
|
cy.selectOption(lockerSelect, lockerCode);
|
2024-05-10 14:01:32 +00:00
|
|
|
cy.saveCard();
|
2024-10-27 12:43:38 +00:00
|
|
|
cy.get(lockerSelect).invoke('val').should('eq', lockerCode);
|
2024-05-10 14:01:32 +00:00
|
|
|
});
|
|
|
|
});
|