REFACTOR: Use the new format for acceptance tests. (#37)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import componentTest from "helpers/component-test";
|
||||
import componentTest from "discourse/tests/helpers/component-test";
|
||||
|
||||
moduleForComponent("payment-options", { integration: true });
|
||||
|
||||
@@ -13,7 +13,7 @@ componentTest("Discourse Subscriptions payment options have no plans", {
|
||||
0,
|
||||
"The plan buttons are not shown"
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
componentTest("Discourse Subscriptions payment options has content", {
|
||||
@@ -27,17 +27,17 @@ componentTest("Discourse Subscriptions payment options has content", {
|
||||
{
|
||||
currency: "aud",
|
||||
recurring: { interval: "year" },
|
||||
amountDollars: "44.99"
|
||||
amountDollars: "44.99",
|
||||
},
|
||||
{
|
||||
currency: "gdp",
|
||||
recurring: { interval: "month" },
|
||||
amountDollars: "9.99"
|
||||
}
|
||||
amountDollars: "9.99",
|
||||
},
|
||||
]);
|
||||
},
|
||||
|
||||
async test(assert) {
|
||||
assert.equal(this.selectedPlan, null, "No plans are selected by default");
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import componentTest from "helpers/component-test";
|
||||
import componentTest from "discourse/tests/helpers/component-test";
|
||||
|
||||
moduleForComponent("payment-plan", { integration: true });
|
||||
|
||||
@@ -13,7 +13,7 @@ componentTest("Payment plan subscription button rendered", {
|
||||
type: "recurring",
|
||||
currency: "aud",
|
||||
recurring: { interval: "year" },
|
||||
amountDollars: "44.99"
|
||||
amountDollars: "44.99",
|
||||
});
|
||||
},
|
||||
|
||||
@@ -39,7 +39,7 @@ componentTest("Payment plan subscription button rendered", {
|
||||
"$AUD 44.99",
|
||||
"The plan amount and currency is shown"
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
componentTest("Payment plan one-time-payment button rendered", {
|
||||
@@ -52,7 +52,7 @@ componentTest("Payment plan one-time-payment button rendered", {
|
||||
this.set("plan", {
|
||||
type: "one_time",
|
||||
currency: "USD",
|
||||
amountDollars: "3.99"
|
||||
amountDollars: "3.99",
|
||||
});
|
||||
},
|
||||
|
||||
@@ -64,5 +64,5 @@ componentTest("Payment plan one-time-payment button rendered", {
|
||||
"One-Time Payment",
|
||||
"Shown as one time payment"
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user