Merge pull request #24634 from overleaf/ii-flexible-group-licensing-replace-add-with-purchase

[web] Replace "add" with "buy" in FL

GitOrigin-RevId: 2c9aa50f138306a46ebfd8557d907c6c55d694bc
This commit is contained in:
ilkin-overleaf
2025-04-03 08:05:12 +00:00
committed by Copybot
parent 4e27add5b7
commit 3b5a148cdc
7 changed files with 21 additions and 21 deletions
@@ -15,7 +15,7 @@ describe('<AddSeats />', function () {
cy.mount(<AddSeats />)
cy.findByRole('button', { name: /add licenses/i })
cy.findByRole('button', { name: /buy licenses/i })
cy.findByTestId('add-more-users-group-form')
})
@@ -35,8 +35,8 @@ describe('<AddSeats />', function () {
})
})
it('shows the "Add more licenses" label', function () {
cy.findByText(/add more licenses/i)
it('shows the "Buy more licenses" label', function () {
cy.findByText(/buy more licenses/i)
})
it('shows the maximum supported users', function () {
@@ -90,7 +90,7 @@ describe('<AddSeats />', function () {
describe('cost summary', function () {
beforeEach(function () {
cy.findByLabelText(/how many licenses do you want to add/i).as('input')
cy.findByLabelText(/how many licenses do you want to buy/i).as('input')
})
it('shows the title', function () {
@@ -139,7 +139,7 @@ describe('<AddSeats />', function () {
this.numberOfUsersExceedingMaxLimit = MAX_NUMBER_OF_USERS + 1
cy.get('@input').type(this.numberOfUsersExceedingMaxLimit.toString())
cy.findByRole('button', { name: /add licenses/i }).should('not.exist')
cy.findByRole('button', { name: /buy licenses/i }).should('not.exist')
cy.findByRole('button', { name: /send request/i }).as('sendRequestBtn')
})
@@ -237,7 +237,7 @@ describe('<AddSeats />', function () {
},
}
cy.findByRole('button', { name: /add licenses/i }).as('addUsersBtn')
cy.findByRole('button', { name: /buy licenses/i }).as('addUsersBtn')
cy.findByRole('button', { name: /send request/i }).should('not.exist')
})
@@ -532,7 +532,7 @@ describe('GroupMembers', function () {
)
cy.findByTestId('group-size-details').contains(
'You have 2 licenses and your plan supports up to 10. Add more licenses.'
'You have 2 licenses and your plan supports up to 10. Buy more licenses.'
)
cy.findByTestId('add-more-members-form').within(() => {
cy.contains('Invite more members')
@@ -552,11 +552,11 @@ describe('GroupMembers', function () {
)
cy.findByTestId('group-size-details').contains(
'You have 1 license and your plan supports up to 10. Add more licenses.'
'You have 1 license and your plan supports up to 10. Buy more licenses.'
)
})
it('renders the group members page without "add more licenses" link when not admin', function () {
it('renders the group members page without "buy more licenses" link when not admin', function () {
cy.window().then(win => {
win.metaAttributesCache.set('ol-users', [this.JOHN_DOE])
win.metaAttributesCache.set('ol-canUseAddSeatsFeature', false)
@@ -570,7 +570,7 @@ describe('GroupMembers', function () {
cy.findByTestId('group-size-details').within(() => {
cy.findByText(/you have \d+ license and your plan supports up to \d+/i)
cy.findByText(/add more licenses/i).should('not.exist')
cy.findByText(/buy more licenses/i).should('not.exist')
})
})
})