updated client.fiscalData e2e path
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e989ef6a06
commit
392bb420c6
|
@ -83,6 +83,9 @@ export default {
|
||||||
equalizationTaxCheckbox: 'vn-client-fiscal-data vn-check[ng-model="$ctrl.client.isEqualizated"]',
|
equalizationTaxCheckbox: 'vn-client-fiscal-data vn-check[ng-model="$ctrl.client.isEqualizated"]',
|
||||||
address: 'vn-client-fiscal-data vn-textfield[ng-model="$ctrl.client.street"]',
|
address: 'vn-client-fiscal-data vn-textfield[ng-model="$ctrl.client.street"]',
|
||||||
postcode: 'vn-client-fiscal-data vn-datalist[ng-model="$ctrl.client.postcode"]',
|
postcode: 'vn-client-fiscal-data vn-datalist[ng-model="$ctrl.client.postcode"]',
|
||||||
|
sageTax: 'vn-client-fiscal-data vn-autocomplete[ng-model="$ctrl.client.sageTaxTypeFk"]',
|
||||||
|
sageTransaction: 'vn-client-fiscal-data vn-autocomplete[ng-model="$ctrl.client.sageTransactionTypeFk"]',
|
||||||
|
transferor: 'vn-client-fiscal-data vn-autocomplete[ng-model="$ctrl.client.transferorFk"]',
|
||||||
city: 'vn-client-fiscal-data vn-datalist[ng-model="$ctrl.client.city"]',
|
city: 'vn-client-fiscal-data vn-datalist[ng-model="$ctrl.client.city"]',
|
||||||
province: 'vn-client-fiscal-data vn-autocomplete[ng-model="$ctrl.client.provinceFk"]',
|
province: 'vn-client-fiscal-data vn-autocomplete[ng-model="$ctrl.client.provinceFk"]',
|
||||||
country: 'vn-client-fiscal-data vn-autocomplete[ng-model="$ctrl.client.countryFk"]',
|
country: 'vn-client-fiscal-data vn-autocomplete[ng-model="$ctrl.client.countryFk"]',
|
||||||
|
|
|
@ -66,6 +66,9 @@ describe('Client Edit fiscalData path', () => {
|
||||||
await page.autocompleteSearch(selectors.clientFiscalData.province, 'Province one');
|
await page.autocompleteSearch(selectors.clientFiscalData.province, 'Province one');
|
||||||
await page.clearInput(selectors.clientFiscalData.city);
|
await page.clearInput(selectors.clientFiscalData.city);
|
||||||
await page.write(selectors.clientFiscalData.city, 'Valencia');
|
await page.write(selectors.clientFiscalData.city, 'Valencia');
|
||||||
|
await page.autocompleteSearch(selectors.clientFiscalData.sageTax, 'operaciones no sujetas');
|
||||||
|
await page.autocompleteSearch(selectors.clientFiscalData.sageTransaction, 'regularización de inversiones');
|
||||||
|
await page.autocompleteSearch(selectors.clientFiscalData.transferor, 'Max Eisenhardt');
|
||||||
await page.clearInput(selectors.clientFiscalData.postcode);
|
await page.clearInput(selectors.clientFiscalData.postcode);
|
||||||
await page.write(selectors.clientFiscalData.postcode, '46000');
|
await page.write(selectors.clientFiscalData.postcode, '46000');
|
||||||
await page.waitToClick(selectors.clientFiscalData.activeCheckbox);
|
await page.waitToClick(selectors.clientFiscalData.activeCheckbox);
|
||||||
|
@ -188,6 +191,24 @@ describe('Client Edit fiscalData path', () => {
|
||||||
expect(result).toContain('46000');
|
expect(result).toContain('46000');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should confirm the sageTax have been edited', async() => {
|
||||||
|
const result = await page.waitToGetProperty(selectors.clientFiscalData.sageTax, 'value');
|
||||||
|
|
||||||
|
expect(result).toEqual('Operaciones no sujetas');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should confirm the sageTransaction have been edited', async() => {
|
||||||
|
const result = await page.waitToGetProperty(selectors.clientFiscalData.sageTransaction, 'value');
|
||||||
|
|
||||||
|
expect(result).toEqual('Regularización de inversiones');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should confirm the transferor have been edited', async() => {
|
||||||
|
const result = await page.waitToGetProperty(selectors.clientFiscalData.transferor, 'value');
|
||||||
|
|
||||||
|
expect(result).toEqual('Max Eisenhardt');
|
||||||
|
});
|
||||||
|
|
||||||
it('should confirm the city have been autocompleted', async() => {
|
it('should confirm the city have been autocompleted', async() => {
|
||||||
const result = await page.waitToGetProperty(selectors.clientFiscalData.city, 'value');
|
const result = await page.waitToGetProperty(selectors.clientFiscalData.city, 'value');
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
"babel-preset-es2015": "^6.24.1",
|
"babel-preset-es2015": "^6.24.1",
|
||||||
"css-loader": "^2.1.0",
|
"css-loader": "^2.1.0",
|
||||||
"del": "^2.2.2",
|
"del": "^2.2.2",
|
||||||
"eslint": "^5.14.0",
|
"eslint": "^7.11.0",
|
||||||
"eslint-config-google": "^0.11.0",
|
"eslint-config-google": "^0.11.0",
|
||||||
"eslint-plugin-jasmine": "^2.10.1",
|
"eslint-plugin-jasmine": "^2.10.1",
|
||||||
"fancy-log": "^1.3.2",
|
"fancy-log": "^1.3.2",
|
||||||
|
|
Loading…
Reference in New Issue