From 0db5b56a2bcbd4b19333ebeaa6c0be4b6ac30539 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Sep 2023 16:44:34 +0000 Subject: [PATCH 1/2] Bump Microsoft.Playwright from 1.37.1 to 1.38.0 Bumps [Microsoft.Playwright](https://github.com/microsoft/playwright-dotnet) from 1.37.1 to 1.38.0. - [Release notes](https://github.com/microsoft/playwright-dotnet/releases) - [Commits](https://github.com/microsoft/playwright-dotnet/compare/v1.37.1...v1.38.0) --- updated-dependencies: - dependency-name: Microsoft.Playwright dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- tests/ApplePayJS.Tests/ApplePayJS.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ApplePayJS.Tests/ApplePayJS.Tests.csproj b/tests/ApplePayJS.Tests/ApplePayJS.Tests.csproj index 24eeb43a..bdfdc037 100644 --- a/tests/ApplePayJS.Tests/ApplePayJS.Tests.csproj +++ b/tests/ApplePayJS.Tests/ApplePayJS.Tests.csproj @@ -13,7 +13,7 @@ - + From e6ff0933a7f18166709de1480acf314fe8901f82 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Tue, 26 Sep 2023 09:24:27 +0100 Subject: [PATCH 2/2] 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 })