mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
[web] add error messages for payment failing on upgrade (#27054)
* [web] add error messages for payment failing to upgrade modal * [web] show payment error on preview change page * [web] add separate message for 3ds failure GitOrigin-RevId: b2680ff9b4f01e42f31c1c11457f216a5eadf49d
This commit is contained in:
+5
-5
@@ -238,11 +238,11 @@ describe('<ChangePlanModal />', function () {
|
||||
|
||||
screen.getByRole('button', { name: 'Processing…' })
|
||||
|
||||
await screen.findByText('Sorry, something went wrong. ', { exact: false })
|
||||
await screen.findByText('Please try again. ', { exact: false })
|
||||
await screen.findByText('If the problem continues please contact us.', {
|
||||
exact: false,
|
||||
})
|
||||
await screen.findAllByText(
|
||||
(content, element) =>
|
||||
element?.textContent ===
|
||||
'Sorry, something went wrong. Please try again. If the problem continues please contact us.'
|
||||
)
|
||||
|
||||
expect(
|
||||
within(screen.getByRole('dialog'))
|
||||
|
||||
Reference in New Issue
Block a user