1
0
mirror of synced 2026-08-31 19:35:40 +00:00

DEV: add frontend tests to make sure pricing-table works

We test three conditions:
1. Make sure the customer email is prefilled, if there is a logged in discourse user
2. The pricing table also displays, if there is no logged in discourse user
3. If the pricing table is not configured, the pricing table element does not show up.
This commit is contained in:
spirobel
2023-07-17 09:40:38 +08:00
committed by Blake Erickson
parent ce988c9512
commit 411ac6ec80
4 changed files with 52 additions and 86 deletions
@@ -1,7 +1,7 @@
export default function (helpers) {
const { response } = helpers;
this.get("/s", () => {
this.get("/subscriptions", () => {
const products = [
{
id: "prod_23o8I7tU4g56",
@@ -20,7 +20,7 @@ export default function (helpers) {
return response(products);
});
this.get("/s/:id", () => {
this.get("/subscriptions/:id", () => {
const product = {
id: "prod_23o8I7tU4g56",
name: "Awesome Product",