fix test
This commit is contained in:
parent
459f4068ab
commit
e68453c047
|
@ -95,14 +95,14 @@ describe('Client Add address path', () => {
|
|||
});
|
||||
|
||||
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');
|
||||
|
||||
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() => {
|
||||
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.waitForState('client.card.address.edit');
|
||||
});
|
||||
|
|
|
@ -29,13 +29,13 @@ describe('Order summary path', () => {
|
|||
it('should check the summary contains the order alias', async() => {
|
||||
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() => {
|
||||
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() => {
|
||||
|
|
Loading…
Reference in New Issue