web: skip education plan in tests

This commit is contained in:
Abdullah Atta
2023-09-25 12:26:57 +05:00
parent 439b090470
commit d6608325b4

View File

@@ -46,7 +46,10 @@ export class CheckoutModel {
for await (const item of iterateList(
this.page.locator(getTestId("checkout-plan"))
)) {
plans.push(new Plan(item));
const plan = new Plan(item);
const planTitle = await plan.getTitle();
if (planTitle?.startsWith("Education")) continue;
plans.push(plan);
}
return plans;
}