changed messages
gitea/salix/2003-adress_validate_uee_members This commit looks good
Details
gitea/salix/2003-adress_validate_uee_members This commit looks good
Details
This commit is contained in:
parent
a6d94737af
commit
499bd082fc
|
@ -74,7 +74,7 @@ describe('Client create path', async() => {
|
||||||
await page.waitToClick(selectors.createClientView.createButton);
|
await page.waitToClick(selectors.createClientView.createButton);
|
||||||
const result = await page.waitForLastSnackbar();
|
const result = await page.waitForLastSnackbar();
|
||||||
|
|
||||||
expect(result).toEqual(`The postcode doesn't exists. Ensure you put the correct format`);
|
expect(result).toEqual(`The postcode doesn't exist. Please enter a correct one`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should check for autocompleted city, province and country`, async() => {
|
it(`should check for autocompleted city, province and country`, async() => {
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
"This ticket can not be modified": "This ticket can not be modified",
|
"This ticket can not be modified": "This ticket can not be modified",
|
||||||
"You can't delete a confirmed order": "You can't delete a confirmed order",
|
"You can't delete a confirmed order": "You can't delete a confirmed order",
|
||||||
"Value has an invalid format": "Value has an invalid format",
|
"Value has an invalid format": "Value has an invalid format",
|
||||||
"The postcode doesn't exists. Ensure you put the correct format": "The postcode doesn't exists. Ensure you put the correct format",
|
"The postcode doesn't exist. Please enter a correct one": "The postcode doesn't exist. Please enter a correct one",
|
||||||
"Can't create stowaway for this ticket": "Can't create stowaway for this ticket",
|
"Can't create stowaway for this ticket": "Can't create stowaway for this ticket",
|
||||||
"Has deleted the ticket id": "Has deleted the ticket id [#{{id}}]({{{url}}})",
|
"Has deleted the ticket id": "Has deleted the ticket id [#{{id}}]({{{url}}})",
|
||||||
"Swift / BIC can't be empty": "Swift / BIC can't be empty",
|
"Swift / BIC can't be empty": "Swift / BIC can't be empty",
|
||||||
|
|
|
@ -106,7 +106,7 @@
|
||||||
"Invalid quantity": "Cantidad invalida",
|
"Invalid quantity": "Cantidad invalida",
|
||||||
"This postal code is not valid": "This postal code is not valid",
|
"This postal code is not valid": "This postal code is not valid",
|
||||||
"is invalid": "is invalid",
|
"is invalid": "is invalid",
|
||||||
"The postcode doesn't exists. Ensure you put the correct format": "El código postal no existe. Asegúrate de ponerlo con el formato correcto",
|
"The postcode doesn't exist. Please enter a correct one": "El código postal no existe. Por favor, introduce uno correcto",
|
||||||
"The department name can't be repeated": "El nombre del departamento no puede repetirse",
|
"The department name can't be repeated": "El nombre del departamento no puede repetirse",
|
||||||
"This phone already exists": "Este teléfono ya existe",
|
"This phone already exists": "Este teléfono ya existe",
|
||||||
"You cannot move a parent to its own sons": "No puedes mover un elemento padre a uno de sus hijos",
|
"You cannot move a parent to its own sons": "No puedes mover un elemento padre a uno de sus hijos",
|
||||||
|
|
|
@ -61,7 +61,7 @@ describe('Address updateAddress', () => {
|
||||||
expect(err.message).toEqual('Customs agent is required for a non UEE member');
|
expect(err.message).toEqual('Customs agent is required for a non UEE member');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should update the adress from a non uee member and not throw an error', async() => {
|
it('should update the adress from a non uee member with no error thrown', async() => {
|
||||||
const expectedResult = 'My edited address';
|
const expectedResult = 'My edited address';
|
||||||
const ctx = {
|
const ctx = {
|
||||||
args: {
|
args: {
|
||||||
|
|
|
@ -23,7 +23,7 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
|
|
||||||
Self.validateAsync('postalCode', hasValidPostcode, {
|
Self.validateAsync('postalCode', hasValidPostcode, {
|
||||||
message: `The postcode doesn't exists. Ensure you put the correct format`
|
message: `The postcode doesn't exist. Please enter a correct one`
|
||||||
});
|
});
|
||||||
|
|
||||||
async function hasValidPostcode(err, done) {
|
async function hasValidPostcode(err, done) {
|
||||||
|
|
|
@ -158,7 +158,7 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
|
|
||||||
Self.validateAsync('postCode', hasValidPostcode, {
|
Self.validateAsync('postCode', hasValidPostcode, {
|
||||||
message: `The postcode doesn't exists. Ensure you put the correct format`
|
message: `The postcode doesn't exist. Please enter a correct one`
|
||||||
});
|
});
|
||||||
|
|
||||||
async function hasValidPostcode(err, done) {
|
async function hasValidPostcode(err, done) {
|
||||||
|
|
Loading…
Reference in New Issue