mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-07-06 14:32:11 +00:00
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 => {
|
QUnit.test("subscribing", async assert => {
|
||||||
await visit("/s");
|
await visit("/s");
|
||||||
|
|
||||||
assert.ok($("#product-list").length, "has product page");
|
await click(".product:first-child a");
|
||||||
assert.ok($(".product:first-child a").length, "has a link");
|
|
||||||
|
assert.ok(
|
||||||
|
$(".discourse-subscriptions-section-columns").length,
|
||||||
|
"has a the sections for billing"
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
@ -19,4 +19,23 @@ export default function(helpers) {
|
|||||||
|
|
||||||
return response(products);
|
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…
x
Reference in New Issue
Block a user