Update and delete subscription from Escut user interface #54 #66
Labels
No labels
bug
documentation
fonctionnalité
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
yaal/escut!66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "update-subscription"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves #54
Ça me semble bien ! À @felix.
9bcb34d361to8141ffa56f🚁
@ -28,3 +49,3 @@can_subscribe = "C'est pour moi"can_subscribe = "Changer ma formule"count_has = string.count(has_subscription)count_can = string.count(can_subscribe)You could simplify this by using
mustcontainlike in the other display tests.mustcontainisn't specific enough for what I intended to do :We have 2 plans.
For this test, the user has 1 active plan and the other is available. Which means the page must display once "C'est pour moi" and once "Changer ma formule". No less and no more.
With
mustcontain, the test would still be green if one of the subscriptions was displayed 10 times, even though it's not what we want to display.but maybe it's overkill to do it the way I did ?
Okay I didn't understand that. You're right then.
You could maybe make it more readable like this (but it's basically the same).
thanks for the simpler alternative, I pushed it !
@ -53,0 +84,4 @@"webhook_type": "subscription.started","subscription": {"customer": {"external_id": iam_user.user_name},"plan_code": "code_first1",This should be
code_first2as we discussed.a89e21131f6135341215