overleaf-cep/services/web/test/frontend/features/group-management/components/subtotal-limit-exceeded.spec.tsx
Tim Down 7168572e74 Merge pull request #24336 from overleaf/td-bs5-migrate-cypress-tests
Migrate some Cypress tests to Bootstrap 5

GitOrigin-RevId: a3de8680046c35f8cc1df8baef60981d8eb52580
2025-03-24 10:48:25 +00:00

23 lines
719 B
TypeScript

import SubtotalLimitExceeded from '@/features/group-management/components/subtotal-limit-exceeded'
describe('<SubtotalLimitExceeded />', function () {
beforeEach(function () {
cy.window().then(win => {
win.metaAttributesCache.set('ol-groupName', 'My Awesome Team')
})
cy.mount(<SubtotalLimitExceeded />)
})
it('shows subtotal limit exceeded notification', function () {
cy.findByRole('alert').within(() => {
cy.findByText(
/sorry, there was an issue upgrading your subscription\. Please.*for help/i
).within(() => {
cy.findByRole('link', {
name: /contact our support team/i,
}).should('have.attr', 'href', '/contact')
})
})
})
})