test: Fix tests with plan cycles 15 and 30 months.

This commit is contained in:
Mateusz Armatys
2022-11-22 17:52:00 +00:00
committed by MargeBot
parent 318df814cf
commit 893ab610fe
4 changed files with 6 additions and 4 deletions
@@ -129,7 +129,7 @@ class CurrentPlanTests : BaseTest() {
fun userWithPaidPlanCardAndIAPPayment15months() {
quark.jailUnban()
quark.setPaymentMethods(AppStore.GooglePlay, card = true, paypal = false, inApp = true)
val paidUserCycle15 = User(plan = Plan.MailPlus)
val paidUserCycle15 = User(plan = Plan.VpnPlus)
val cycle15 = PlanCycle.OTHER.apply {
cycleDurationMonths = 15
}
@@ -158,7 +158,7 @@ class CurrentPlanTests : BaseTest() {
fun userWithPaidPlanCardAndIAPPayment30months() {
quark.jailUnban()
quark.setPaymentMethods(AppStore.GooglePlay, card = true, paypal = false, inApp = true)
val paidUserCycle30 = User(plan = Plan.MailPlus)
val paidUserCycle30 = User(plan = Plan.VpnPlus)
val cycle30 = PlanCycle.OTHER.apply {
cycleDurationMonths = 30
}
@@ -121,7 +121,7 @@ class UpgradePlanTests : BaseTest() {
fun userWithPaidPlanCardAndIAPPayment15months() {
quark.jailUnban()
quark.setPaymentMethods(AppStore.GooglePlay, card = true, paypal = false, inApp = true)
val paidUserCycle15 = User(plan = Plan.MailPlus)
val paidUserCycle15 = User(plan = Plan.VpnPlus)
val cycle15 = PlanCycle.OTHER.apply {
cycleDurationMonths = 15
}
@@ -137,7 +137,7 @@ class UpgradePlanTests : BaseTest() {
fun userWithPaidPlanCardAndIAPPayment30months() {
quark.jailUnban()
quark.setPaymentMethods(AppStore.GooglePlay, card = true, paypal = false, inApp = true)
val paidUserCycle15 = User(plan = Plan.MailPlus)
val paidUserCycle15 = User(plan = Plan.VpnPlus)
val cycle15 = PlanCycle.OTHER.apply {
cycleDurationMonths = 30
}
+1
View File
@@ -195,6 +195,7 @@ public final class me/proton/core/test/quark/data/Plan : java/lang/Enum {
public static final field Professional Lme/proton/core/test/quark/data/Plan;
public static final field Unlimited Lme/proton/core/test/quark/data/Plan;
public static final field Visionary Lme/proton/core/test/quark/data/Plan;
public static final field VpnPlus Lme/proton/core/test/quark/data/Plan;
public final fun getPlanName ()Ljava/lang/String;
public final fun getText ()Ljava/lang/String;
public final fun setPlanName (Ljava/lang/String;)V
@@ -34,6 +34,7 @@ public enum class Plan(public var planName: String, public var text: String) {
Free("free", "Proton Free"),
MailPlus("mail2022", "Mail Plus"),
Unlimited("bundle2022", "Proton Unlimited"),
VpnPlus("vpn2022", "VPN Plus"),
Dev("", "")
}