2024-05-17 06:55:07 +00:00
|
|
|
describe('WorkerPda', () => {
|
2024-05-16 10:57:35 +00:00
|
|
|
const deviceProductionField =
|
|
|
|
'.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container';
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.viewport(1920, 1080);
|
|
|
|
cy.login('developer');
|
|
|
|
cy.visit(`/#/worker/1110/pda`);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('assign pda', () => {
|
|
|
|
cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click();
|
|
|
|
cy.get(deviceProductionField).type('{downArrow}{enter}');
|
|
|
|
cy.get('.vn-row > #simSerialNumber').type('123{enter}');
|
|
|
|
cy.get('.q-notification__message').should('have.text', 'Data created');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('delete pda', () => {
|
2024-05-23 12:24:58 +00:00
|
|
|
cy.get('.btn-delete').click();
|
2024-05-20 23:04:52 +00:00
|
|
|
cy.get(
|
|
|
|
'.q-card__actions > .q-btn--unelevated > .q-btn__content > .block'
|
|
|
|
).click();
|
2024-05-16 10:57:35 +00:00
|
|
|
cy.get('.q-notification__message').should('have.text', 'PDA deallocated');
|
|
|
|
});
|
|
|
|
});
|