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

[web] add stripe customer portal link GitOrigin-RevId: 6baaf51d4dd89ef779229ad17603529db06cf396
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import { SplitTestProvider } from '@/shared/context/split-test-context'
|
|
import MissingBillingInformation from '@/features/group-management/components/missing-billing-information'
|
|
|
|
describe('<MissingBillingInformation />', function () {
|
|
beforeEach(function () {
|
|
cy.window().then(win => {
|
|
win.metaAttributesCache.set('ol-groupName', 'My Awesome Team')
|
|
})
|
|
|
|
cy.mount(
|
|
<SplitTestProvider>
|
|
<MissingBillingInformation />
|
|
</SplitTestProvider>
|
|
)
|
|
})
|
|
|
|
it('shows missing payment details notification', function () {
|
|
cy.findByRole('alert').within(() => {
|
|
cy.findByText(/missing payment details/i)
|
|
cy.findByText(
|
|
/it looks like your payment details are missing\. Please.*, or.*with our Support team for more help/i
|
|
).within(() => {
|
|
cy.findByRole('link', {
|
|
name: /update your billing information/i,
|
|
}).should(
|
|
'have.attr',
|
|
'href',
|
|
'/user/subscription/payment/billing-details'
|
|
)
|
|
cy.findByRole('link', { name: /get in touch/i }).should(
|
|
'have.attr',
|
|
'href',
|
|
'/contact'
|
|
)
|
|
})
|
|
})
|
|
})
|
|
})
|