a bit more testing
This commit is contained in:
parent
7e2d4595ca
commit
9902947e99
|
@ -12,6 +12,10 @@ acceptance("Discourse Subscriptions", {
|
|||
QUnit.test("subscribing", async assert => {
|
||||
await visit("/s");
|
||||
|
||||
assert.ok($("#product-list").length, "has product page");
|
||||
assert.ok($(".product:first-child a").length, "has a link");
|
||||
await click(".product:first-child a");
|
||||
|
||||
assert.ok(
|
||||
$(".discourse-subscriptions-section-columns").length,
|
||||
"has a the sections for billing"
|
||||
);
|
||||
});
|
||||
|
|
|
@ -19,4 +19,23 @@ export default function(helpers) {
|
|||
|
||||
return response(products);
|
||||
});
|
||||
|
||||
this.get("/s/products/:id", () => {
|
||||
const product = {};
|
||||
|
||||
return response(product);
|
||||
});
|
||||
|
||||
this.get("/s/plans", () => {
|
||||
const plans = [
|
||||
{
|
||||
id: "plan_GHGHSHS8654G",
|
||||
amount: 200,
|
||||
currency: "usd",
|
||||
interval: "month"
|
||||
}
|
||||
];
|
||||
|
||||
return response(plans);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue