Add wait time for next button to be clicked on

This commit is contained in:
JennyNou 2026-03-30 20:51:04 -04:00
parent e440a3b60c
commit 5ca23e64c7

View file

@ -25,6 +25,7 @@ export class PaypalPage extends BasePage {
async completePaypalPurchase(paymentDetails: IPaymentDetails) { async completePaypalPurchase(paymentDetails: IPaymentDetails) {
await this.usernameTextBox.fill(paymentDetails.username!); await this.usernameTextBox.fill(paymentDetails.username!);
await this.nextButton.waitFor({ state: 'visible', timeout: 10000 });
await this.nextButton.click(); await this.nextButton.click();
await this.passwordTextBox.fill(paymentDetails.password!); await this.passwordTextBox.fill(paymentDetails.password!);
await this.paypalLoginButton.click(); await this.paypalLoginButton.click();