Allow .com customers to purchase a new subscription for a group with an expired one that is still attached
Overview
As part of our effort to allow .com customers that have previously expired but not correctly downgraded to free, we want to enable the ability for a .com customer to purchase a new subscription for a namespace with one that is expired. This will allow us to message these folks prior to actually downgrading them and prevent causing a negative customer experience.
User Story
As an owner of a .com namespace, I want the ability to purchase a new subscription and assign it to my namespace, even though it currently has an expired subscription attached to it.
Given/When/Then
Persona: .com user with owner permission for a group
Given: My subscription is expired
When: I am in the customers portal and start to purchase a new subscription for my group, at the point I am presented the drop-down menu to select the group
Then: I should be able to select any groups that have an expired subscription currently attached to it, in addition to groups that do not have a subscription
When: I select a group with a currently expired subscription and complete the purchase flow
Then: My newly purchased subscription is tied to the group that I selected and the expired subscription disappears (same as if it was canceled)
Given: My subscription is NOT expired
When: I am in the customers portal and start to purchase a new subscription for my group, at the point I am presented the drop-down menu to select the group
Then: I should NOT be able to select any groups that have a current subscription attached to it
