fix tests.
Этот коммит содержится в:
@@ -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 () => {
|
||||
|
||||
Ссылка в новой задаче
Block a user