2565-address_fixtures #440
|
@ -95,14 +95,14 @@ describe('Client Add address path', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should confirm the default address is the expected one`, async() => {
|
it(`should confirm the default address is the expected one`, async() => {
|
||||||
await page.waitForTextInElement(selectors.clientAddresses.defaultAddress, 'Somewhere in Thailand');
|
await page.waitForTextInElement(selectors.clientAddresses.defaultAddress, 'somewhere in new york');
|
||||||
const result = await page.waitToGetProperty(selectors.clientAddresses.defaultAddress, 'innerText');
|
const result = await page.waitToGetProperty(selectors.clientAddresses.defaultAddress, 'innerText');
|
||||||
|
|
||||||
expect(result).toContain('Somewhere in Thailand');
|
expect(result).toContain('Somewhere in New York');
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should click on the edit icon of the default address`, async() => {
|
it(`should click on the edit icon of the default address`, async() => {
|
||||||
await page.waitForTextInElement(selectors.clientAddresses.defaultAddress, 'Somewhere in Thailand');
|
await page.waitForTextInElement(selectors.clientAddresses.defaultAddress, 'somewhere in new york');
|
||||||
await page.waitToClick(selectors.clientAddresses.firstEditAddress);
|
await page.waitToClick(selectors.clientAddresses.firstEditAddress);
|
||||||
await page.waitForState('client.card.address.edit');
|
await page.waitForState('client.card.address.edit');
|
||||||
});
|
});
|
||||||
|
|
|
@ -29,13 +29,13 @@ describe('Order summary path', () => {
|
||||||
it('should check the summary contains the order alias', async() => {
|
it('should check the summary contains the order alias', async() => {
|
||||||
const result = await page.waitToGetProperty(selectors.orderSummary.alias, 'innerText');
|
const result = await page.waitToGetProperty(selectors.orderSummary.alias, 'innerText');
|
||||||
|
|
||||||
expect(result).toEqual('address 26');
|
expect(result).toEqual('Many places');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should check the summary contains the order consignee', async() => {
|
it('should check the summary contains the order consignee', async() => {
|
||||||
const result = await page.waitToGetProperty(selectors.orderSummary.consignee, 'innerText');
|
const result = await page.waitToGetProperty(selectors.orderSummary.consignee, 'innerText');
|
||||||
|
|
||||||
expect(result).toEqual('Many places - Silla (Province one)');
|
expect(result).toEqual('address 26 - Silla (Province one)');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should check the summary contains the order subtotal', async() => {
|
it('should check the summary contains the order subtotal', async() => {
|
||||||
|
|
Loading…
Reference in New Issue