From fdcb1a8a60959055cd13614139f140c206ff9adb Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Wed, 22 Jan 2025 17:45:16 +0000 Subject: [PATCH] #1437 correct case of test asserting text="Automatically cancels at:" --- .../e2e/516_subscriber_order_plan_with_cancel_at.spec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/browser-automated-tests-playwright/e2e/516_subscriber_order_plan_with_cancel_at.spec.js b/tests/browser-automated-tests-playwright/e2e/516_subscriber_order_plan_with_cancel_at.spec.js index f9c3fd6c..5ce44293 100644 --- a/tests/browser-automated-tests-playwright/e2e/516_subscriber_order_plan_with_cancel_at.spec.js +++ b/tests/browser-automated-tests-playwright/e2e/516_subscriber_order_plan_with_cancel_at.spec.js @@ -74,8 +74,7 @@ test.describe("order plan with cancel at:", () => { const subscriber_plan_sell_price_content = await page.evaluate(() => document.querySelector('.subscribers-plan-sell-price').textContent.indexOf("(No up-front fee)")); expect(subscriber_plan_sell_price_content > -1) - const subscriber_plan_cancel_at_content = await page.textContent('text="Automatically Cancels at:"'); - expect(subscriber_plan_cancel_at_content === "Automatically Cancels at:"); + await page.textContent('text="Automatically cancels at:"'); // Go to upcoming payments and ensure plan is attached to upcoming invoice