mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-28 20:00:10 +02:00

Migrate some Cypress tests to Bootstrap 5 GitOrigin-RevId: a3de8680046c35f8cc1df8baef60981d8eb52580
23 lines
719 B
TypeScript
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')
|
|
})
|
|
})
|
|
})
|
|
})
|