Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ export class ClaimantTaskListPage {
}

private clickTaskLink (selector: string, fallbackText: string): void {
const taskSelector = `${selector}, .app-task-list__task-name:contains('${fallbackText}') a`
if (this.tryClick(taskSelector)) {
if (this.tryClick(selector)) {
return
}
// Fallback to direct text search if the selector isn’t present
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class PaymentDetailsPage {
}

enterPaymentDetails (cardDetails: CardDetails, billingDetails: Address, email: string): void {
I.waitForText('Enter card details')
I.waitForText('Enter card details', 90)
I.fillField(fields.card.number, cardDetails.number.toString())
I.fillField(fields.card.expiryDate.month, cardDetails.expiryMonth)
I.fillField(fields.card.expiryDate.year, cardDetails.expiryYear)
Expand All @@ -47,7 +47,7 @@ export class PaymentDetailsPage {
}

cancelPayment (): void {
I.waitForText('Enter card details')
I.waitForText('Enter card details', 90)
I.click('Cancel payment')
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class DefendantTaskListPage {
}

selectShareYourFinancialDetailsTask (): void {
this.clickText('Share your financial details')
this.clickText('Share your financial details', 90)
}

selectTaskCheckAndSendYourResponse (): void {
Expand All @@ -72,8 +72,8 @@ export class DefendantTaskListPage {
this.clickText('Give us details in case there’s a hearing')
}

private clickText (text: string) {
I.waitForText(text)
private clickText (text: string, timeoutSec?: number) {
I.waitForText(text, timeoutSec ?? 60)
I.click(text)
}
}
Loading