Этот коммит содержится в:
Conor Macpherson
2023-03-31 10:14:35 -04:00
родитель 2eda7f24c9
Коммит a11e5357e3
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@@ -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');

Просмотреть файл

@@ -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

Просмотреть файл

@@ -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 () => {