From d94d9ad6ba34082ef2e7eaaf114db80826fd8ef6 Mon Sep 17 00:00:00 2001 From: Ronald Langeveld Date: Fri, 20 Oct 2023 15:40:32 +0700 Subject: [PATCH] Cleaned up tiers test in settings (#18707) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no issue --- ### 🤖 Generated by Copilot at 87456d8 Enable tier card text verification in `tiers.test.ts`. This change is part of adding tiers support in the admin settings. --- .../test/acceptance/membership/tiers.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/admin-x-settings/test/acceptance/membership/tiers.test.ts b/apps/admin-x-settings/test/acceptance/membership/tiers.test.ts index 52f8a98d3d..2f3fc35654 100644 --- a/apps/admin-x-settings/test/acceptance/membership/tiers.test.ts +++ b/apps/admin-x-settings/test/acceptance/membership/tiers.test.ts @@ -60,10 +60,8 @@ test.describe('Tier settings', async () => { await modal.getByRole('button', {name: 'Save & close'}).click(); - await page.pause(); - - // await expect(section.getByTestId('tier-card').filter({hasText: /Plus/})).toHaveText(/Plus tier/); - // await expect(section.getByTestId('tier-card').filter({hasText: /Plus/})).toHaveText(/\$8\/month/); + await expect(section.getByTestId('tier-card').filter({hasText: /Plus/})).toHaveText(/Plus tier/); + await expect(section.getByTestId('tier-card').filter({hasText: /Plus/})).toHaveText(/\$8\/month/); expect(lastApiRequests.addTier?.body).toMatchObject({ tiers: [{