Skip to content

Commit

Permalink
fixed testcafe cart test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey Novikov committed Jan 25, 2024
1 parent 93c69b4 commit a69fb12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions payment/Common/cart.testcafe.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test('Fill cart for unregistered user', async t => {
await t.expect(proRow.find('td').nth(4).innerText).eql('€0.00');
await t.expect(proRow.find('td').nth(5).innerText).eql('€899.00');

await t.expect(Selector('.v2-class---cart-subtotal-container[data-name=subtotal] .v2-class---cart-subtotal-container__value').innerText).eql('€2,198.00');
await t.expect(Selector('.v2-class---cart-subtotal-container [data-name=subtotal] .v2-class---cart-subtotal-container__value').innerText).eql('€2,198.00');

await t.expect(Selector("input[placeholder='Company VAT Number (EU companies only)']").visible).notOk('no vat', { timeout: 500 });

Expand Down Expand Up @@ -110,7 +110,7 @@ test('Fill cart for registered users', async t => {
await t.expect(proRow.find('td').nth(4).innerText).eql('€0.00');
await t.expect(proRow.find('td').nth(5).innerText).eql('€899.00');

await t.expect(Selector('.v2-class---cart-subtotal-container[data-name=subtotal] .v2-class---cart-subtotal-container__value').innerText).eql('€2,198.00');
await t.expect(Selector('.v2-class---cart-subtotal-container [data-name=subtotal] .v2-class---cart-subtotal-container__value').innerText).eql('€2,198.00');

await t.expect(Selector("input[placeholder='Company VAT Number (EU companies only)']").visible).notOk('no vat', { timeout: 500 });

Expand Down Expand Up @@ -183,7 +183,7 @@ test.skip('Full buy cart cycle', async t => {
await t.expect(proRow.find('td').nth(4).innerText).eql('€0.00');
await t.expect(proRow.find('td').nth(5).innerText).eql('€899.00');

await t.expect(Selector('.v2-class---cart-subtotal-container__value').innerText).eql('€2,198.00');
await t.expect(Selector('.v2-class---cart-subtotal-container [data-name=subtotal] .v2-class---cart-subtotal-container__value').innerText).eql('€2,198.00');

await t.expect(Selector("input[aria-label='Company VAT Number (EU companies only)']").visible).notOk('no vat', { timeout: 500 });

Expand Down

0 comments on commit a69fb12

Please sign in to comment.