subtotal-limit-exceeded.spec.tsx 719 B

1234567891011121314151617181920212223
  1. import SubtotalLimitExceeded from '@/features/group-management/components/subtotal-limit-exceeded'
  2. describe('<SubtotalLimitExceeded />', function () {
  3. beforeEach(function () {
  4. cy.window().then(win => {
  5. win.metaAttributesCache.set('ol-groupName', 'My Awesome Team')
  6. })
  7. cy.mount(<SubtotalLimitExceeded />)
  8. })
  9. it('shows subtotal limit exceeded notification', function () {
  10. cy.findByRole('alert').within(() => {
  11. cy.findByText(
  12. /sorry, there was an issue upgrading your subscription\. Please.*for help/i
  13. ).within(() => {
  14. cy.findByRole('link', {
  15. name: /contact our support team/i,
  16. }).should('have.attr', 'href', '/contact')
  17. })
  18. })
  19. })
  20. })