Skip to content

Commit

Permalink
test: fix browser test for alteration
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Nov 20, 2024
1 parent 54da52b commit 1c6cc21
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,11 @@ test('Handler handles the alteration from the last test properly', async (t: Tes
// Recalculate and verify that the calculation is not zero
await t.click(calculateButton);
resultText = await calculationResult.textContent;
const expectedAmount = 68 * (0.03 / 0.27);
const expectedAmount = (68 * (0.03 / 0.27)).toFixed(0);
await t
.expect(resultText.includes(getCurrencyString(expectedAmount, 0)))
.expect(
resultText.includes(getCurrencyString(parseInt(expectedAmount, 10), 0))
)
.ok();

// Select manual calculation mode
Expand Down

0 comments on commit 1c6cc21

Please sign in to comment.