From a11e5357e33548e0cd389ae3b5b849556df4cbde Mon Sep 17 00:00:00 2001 From: Conor Macpherson Date: Fri, 31 Mar 2023 10:14:35 -0400 Subject: [PATCH] fix tests. --- .../enterprise/cloud/billing/yearly_subscription_spec.js | 2 +- .../enterprise/self-hosted/self_hosted_purchase_spec.ts | 2 +- .../src/components/self_hosted_purchase_modal/index.test.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e-tests/cypress/tests/integration/channels/enterprise/cloud/billing/yearly_subscription_spec.js b/e2e-tests/cypress/tests/integration/channels/enterprise/cloud/billing/yearly_subscription_spec.js index 5351459903..0eacc1350c 100644 --- a/e2e-tests/cypress/tests/integration/channels/enterprise/cloud/billing/yearly_subscription_spec.js +++ b/e2e-tests/cypress/tests/integration/channels/enterprise/cloud/billing/yearly_subscription_spec.js @@ -147,7 +147,7 @@ describe('System Console - Subscriptions section', () => { // * Ensure that the yearly, monthly, and yearly saving prices match the new user seats value entered checkValues(lessThanUserCount); - cy.get('.RHS').get('.Input___customMessage').contains(`Your workspace currently has ${count} active users`); + cy.get('.RHS').get('.Input___customMessage').contains(`Your workspace currently has ${count} users`); // * Check that Upgrade button is not enabled cy.get('.RHS').find('button').should('be.disabled'); diff --git a/e2e-tests/cypress/tests/integration/channels/enterprise/self-hosted/self_hosted_purchase_spec.ts b/e2e-tests/cypress/tests/integration/channels/enterprise/self-hosted/self_hosted_purchase_spec.ts index cbbe859a82..a21f5994b1 100644 --- a/e2e-tests/cypress/tests/integration/channels/enterprise/self-hosted/self_hosted_purchase_spec.ts +++ b/e2e-tests/cypress/tests/integration/channels/enterprise/self-hosted/self_hosted_purchase_spec.ts @@ -340,7 +340,7 @@ describe('Self hosted Purchase', () => { getCurrentUsers().then((currentUsers) => { // * Verify form can not be submitted - cy.contains(`Your workspace currently has ${currentUsers} active users`).should('not.be.enabled'); + cy.contains(`Your workspace currently has ${currentUsers} users`).should('not.be.enabled'); cy.contains('Upgrade').should('not.be.enabled'); // # Fill form the same number of seats as current users diff --git a/webapp/channels/src/components/self_hosted_purchase_modal/index.test.tsx b/webapp/channels/src/components/self_hosted_purchase_modal/index.test.tsx index f9c57ac38d..81437b3d7a 100644 --- a/webapp/channels/src/components/self_hosted_purchase_modal/index.test.tsx +++ b/webapp/channels/src/components/self_hosted_purchase_modal/index.test.tsx @@ -275,7 +275,7 @@ describe('SelfHostedPurchaseModal', () => { const tooFewSeats = existingUsers - 1; fireEvent.change(screen.getByTestId('selfHostedPurchaseSeatsInput'), valueEvent(tooFewSeats.toString())); expect(screen.getByText('Upgrade')).toBeDisabled(); - screen.getByText('Your workspace currently has 10 active users', {exact: false}); + screen.getByText('Your workspace currently has 10 users', {exact: false}); }); it('happy path submit shows success screen', async () => {