Skip to content

Commit

Permalink
Fix obsolete warning
Browse files Browse the repository at this point in the history
- Use `FillAsync()` instead of `TypeAsync()`.
- Fix indentation.
  • Loading branch information
martincostello authored Sep 26, 2023
1 parent 0db5b56 commit e6ff093
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/ApplePayJS.Tests/IntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit e6ff093

Please sign in to comment.