#203 add isFrozen to fiscal data form
This commit is contained in:
parent
559f5fc3ae
commit
e08fd21f4c
|
@ -89,13 +89,20 @@
|
||||||
</vn-check>
|
</vn-check>
|
||||||
<vn-check
|
<vn-check
|
||||||
vn-one
|
vn-one
|
||||||
|
label="Frozen"
|
||||||
|
field="$ctrl.client.isFreezed"
|
||||||
|
vn-acl="administrative, salesAssistant, salesPerson"
|
||||||
|
acl-conditional-to-salesPerson="{{!$ctrl.client.isTaxDataChecked}}">
|
||||||
|
</vn-check>
|
||||||
|
<vn-check
|
||||||
|
vn-two
|
||||||
label="Invoice by address"
|
label="Invoice by address"
|
||||||
field="$ctrl.client.hasToInvoiceByAddress"
|
field="$ctrl.client.hasToInvoiceByAddress"
|
||||||
vn-acl="administrative, salesAssistant, salesPerson"
|
vn-acl="administrative, salesAssistant, salesPerson"
|
||||||
acl-conditional-to-salesPerson="{{!$ctrl.client.isTaxDataChecked}}">
|
acl-conditional-to-salesPerson="{{!$ctrl.client.isTaxDataChecked}}">
|
||||||
</vn-check>
|
</vn-check>
|
||||||
<vn-check
|
<vn-check
|
||||||
vn-one
|
vn-two
|
||||||
label="Verified data"
|
label="Verified data"
|
||||||
field="$ctrl.client.isTaxDataChecked"
|
field="$ctrl.client.isTaxDataChecked"
|
||||||
vn-acl="administrative, salesAssistant, salesAssistant">
|
vn-acl="administrative, salesAssistant, salesAssistant">
|
||||||
|
|
|
@ -61,7 +61,7 @@ describe('lock verified data path', () => {
|
||||||
.wait(selectors.clientFiscalData.verifiedDataCheckboxInput)
|
.wait(selectors.clientFiscalData.verifiedDataCheckboxInput)
|
||||||
.evaluate(selector => {
|
.evaluate(selector => {
|
||||||
return document.querySelector(selector).className;
|
return document.querySelector(selector).className;
|
||||||
}, 'body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > vn-client-fiscal-data > form > vn-card > div > vn-horizontal:nth-child(5) > vn-check:nth-child(3) > label')
|
}, 'body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > vn-client-fiscal-data > form > vn-card > div > vn-horizontal:nth-child(5) > vn-check:nth-child(4) > label')
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toContain('is-disabled');
|
expect(result).toContain('is-disabled');
|
||||||
});
|
});
|
||||||
|
@ -452,7 +452,7 @@ describe('lock verified data path', () => {
|
||||||
.wait(selectors.clientFiscalData.verifiedDataCheckboxInput)
|
.wait(selectors.clientFiscalData.verifiedDataCheckboxInput)
|
||||||
.evaluate(selector => {
|
.evaluate(selector => {
|
||||||
return document.querySelector(selector).className;
|
return document.querySelector(selector).className;
|
||||||
}, 'body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > vn-client-fiscal-data > form > vn-card > div > vn-horizontal:nth-child(5) > vn-check:nth-child(3) > label')
|
}, 'body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > vn-client-fiscal-data > form > vn-card > div > vn-horizontal:nth-child(5) > vn-check:nth-child(4) > label')
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toContain('is-disabled');
|
expect(result).toContain('is-disabled');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue