From 68cab7465f46e9734bf77f90439ab95fe7ee397f Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Tue, 26 Sep 2023 09:24:27 +0100 Subject: [PATCH] Fix obsolete warning - Use `FillAsync()` instead of `TypeAsync()`. - Fix indentation. --- tests/ApplePayJS.Tests/IntegrationTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ApplePayJS.Tests/IntegrationTests.cs b/tests/ApplePayJS.Tests/IntegrationTests.cs index 8cd1a60b..137778f2 100644 --- a/tests/ApplePayJS.Tests/IntegrationTests.cs +++ b/tests/ApplePayJS.Tests/IntegrationTests.cs @@ -54,14 +54,14 @@ await fixture.WithPageAsync(async (page) => await page.GotoAsync(Fixture.ServerAddress.ToString()); await page.WaitForLoadStateAsync(LoadState.DOMContentLoaded); - // Act - await page.ClearTextAsync(Selectors.Amount); - await page.TypeAsync(Selectors.Amount, "1.23"); + // Act + await page.ClearTextAsync(Selectors.Amount); + await page.FillAsync(Selectors.Amount, "1.23"); await page.ClickAsync(Selectors.Pay); - // Assert - await page.WaitForSelectorAsync(Selectors.CardName); + // Assert + await page.WaitForSelectorAsync(Selectors.CardName); await page.InnerTextAsync(Selectors.CardName).ShouldBe("American Express"); foreach (string selector in new[] { Selectors.BillingContact, Selectors.ShipingContact })