Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7207-showPbx
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
9383a71adb
|
@ -46,13 +46,13 @@ async function deleteWorCenter(id) {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="centerCard">
|
|
||||||
<FetchData
|
<FetchData
|
||||||
url="workCenters"
|
url="workCenters"
|
||||||
sort-by="name"
|
sort-by="name"
|
||||||
@on-fetch="(data) => (warehouses = data)"
|
@on-fetch="(data) => (warehouses = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
|
<div class="centerCard">
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
ref="paginate"
|
ref="paginate"
|
||||||
data-key="AgencyWorkCenters"
|
data-key="AgencyWorkCenters"
|
||||||
|
|
|
@ -4,12 +4,12 @@ describe('AgencyWorkCenter', () => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit(`/#/agency/11/workCenter`);
|
cy.visit(`/#/agency/11/workCenter`);
|
||||||
});
|
});
|
||||||
|
const createButton = '.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon';
|
||||||
|
const workCenterCombobox = 'input[role="combobox"]';
|
||||||
|
|
||||||
it('assign workCenter', () => {
|
it('assign workCenter', () => {
|
||||||
cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click();
|
cy.get(createButton).click();
|
||||||
cy.get(
|
cy.get(workCenterCombobox).type('workCenterOne{enter}');
|
||||||
'.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container'
|
|
||||||
).type('workCenterOne{enter}');
|
|
||||||
cy.get('.q-notification__message').should('have.text', 'Data created');
|
cy.get('.q-notification__message').should('have.text', 'Data created');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -22,12 +22,10 @@ describe('AgencyWorkCenter', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('error on duplicate workCenter', () => {
|
it('error on duplicate workCenter', () => {
|
||||||
cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click();
|
cy.get(createButton).click();
|
||||||
cy.get(
|
cy.get(workCenterCombobox).type('workCenterOne{enter}');
|
||||||
'.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container'
|
|
||||||
).type('workCenterOne{enter}');
|
|
||||||
cy.get('.q-notification__message').should('have.text', 'Data created');
|
cy.get('.q-notification__message').should('have.text', 'Data created');
|
||||||
cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click();
|
cy.get(createButton).click();
|
||||||
cy.get(
|
cy.get(
|
||||||
'.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container'
|
'.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container'
|
||||||
).type('workCenterOne{enter}');
|
).type('workCenterOne{enter}');
|
||||||
|
|
|
@ -2,7 +2,7 @@ describe('Route', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1920, 1080);
|
cy.viewport(1920, 1080);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit(`/#/route/list`);
|
cy.visit(`/#/route/extended-list`);
|
||||||
});
|
});
|
||||||
const getVnSelect =
|
const getVnSelect =
|
||||||
'> :nth-child(1) > .column > .q-field > .q-field__inner > .q-field__control > .q-field__control-container';
|
'> :nth-child(1) > .column > .q-field > .q-field__inner > .q-field__control > .q-field__control-container';
|
||||||
|
|
Loading…
Reference in New Issue