Skip to content

Commit

Permalink
feat(autofill): update questions in checkout page test ids
Browse files Browse the repository at this point in the history
  • Loading branch information
giuxtaposition committed Feb 16, 2024
1 parent 52a7b8c commit eefcff8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/lib/pages/life/checkoutPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@ export default class CheckoutPage extends Page {
"input[name='insured.document.releaseAuthority']";

private medicalExams =
"//div[@data-testid='wantsToDoMedicalExam']//button[2]";
"//div[@data-testid='question-wantsToDoMedicalExam']//button[2]";

private iban = "input[name='payment.iban']";

private isAccountHolder = "//div[@data-testid='isAccountHolder']//button";
private dataTruthfulness = "//div[@data-testid='dataTruthfulness']//button";
private isAccountHolder =
"//div[@data-testid='question-payment.isAccountHolder']//button";
private dataTruthfulness =
"//div[@data-testid='question-compliance.dataTruthfulness']//button";
private termsAndConditions =
"//div[@data-testid='termsAndConditions']//button";
"//div[@data-testid='question-compliance.termsAndConditions']//button";
private privacyPolicyExtended =
"//div[@data-testid='privacyPolicyExtended']//button";
private otherPolicies = "//div[@data-testid='otherPolicies']//button";
"//div[@data-testid='question-privacyPolicyExtended']//button";
private otherPolicies =
"//div[@data-testid='question-compliance.otherPolicies']//button";
private confirmObligations =
"//div[@data-testid='confirmObligations']//button";
"//div[@data-testid='question-compliance.confirmObligations']//button";

async autofill(): Promise<void> {
this.changeInputValue(this.documentType, "PASSPORT");
Expand Down

0 comments on commit eefcff8

Please sign in to comment.