Skip to content

Commit

Permalink
Only subscribers get stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
krwenholz committed Dec 16, 2019
1 parent 7c48276 commit 71e6905
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/non-subscriber.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("NonSubscriber", () => {

it("blocks early content", () => {
cy.logInNonSubscriber();
cy.contains("Subscribers only before ").should("exist");
cy.contains("Subscribers only").should("exist");
cy.contains("Become a full adventurer now to unlock access.").should(
"exist"
);
Expand Down
18 changes: 11 additions & 7 deletions cypress/integration/subscriber.spec.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
describe('Subscriber', () => {
describe("Subscriber", () => {
beforeEach(() => {
cy.logIn();
});

it('displays the super cool things', () => {
cy.url().should('contain', '/');
cy.contains('Subscribers only before').should('exist');
cy.contains('Become a full adventurer to unlock access').should('not.exist');
cy.get('.story-previews').find('button').should('have.length', 2);
it("displays the super cool things", () => {
cy.url().should("contain", "/");
cy.contains("Subscribers only").should("exist");
cy.contains("Become a full adventurer to unlock access").should(
"not.exist"
);
cy.get(".story-previews")
.find("button")
.should("have.length", 2);
});
});
});
2 changes: 1 addition & 1 deletion src/routes/_welcome/StoryPreview/Preview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<h2>{title}</h2>
<small>by {author}</small>
{#if !isReleased}
<small>Subscribers only before {releaseDate.toDateString()}</small>
<small>Subscribers only</small>
{#if !isSubscriber}
<small>
<a href="/user/profile?tab=adventurer">
Expand Down
6 changes: 3 additions & 3 deletions src/routes/faq.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@

<details>
<summary>When is the next story coming?</summary>
Subscribers should expect a new story every three to four weeks. Three weeks
later, we'll release the story for non-subscribers. In between releases,
Subscribers should expect a new story every month. At some point, we may
release the story for non-subscribers. In between releases,
subscribers should expect emails with teasers, creator interviews, and more.
</details>

<details>
<summary>Why do you require accounts?</summary>
Creating an account grants you access to the library of adventures. We use
Creating an account grants you access to our adventures. We use
your email and name, which we only share for things like payments, to
personalize the experience and send you exciting updates. In lieu of sharing
your data and browsing with a third party, we handcraft some interesting
Expand Down
6 changes: 2 additions & 4 deletions src/routes/landing.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
const walkthrough = [
{
lead: "This is for you.",
details: [
"New stories come out every month, subscriber only for three to four weeks."
]
details: ["New stories come out every month, subscriber only for now."]
},
{
lead: "Great stories are just waiting to be found.",
details: [
"Our stories are original, sourced from unknown authors, and stamped with the “we really enjoyed this” guarantee. The tooling and platform will eventually be open to everyone."
"Our stories are original, sourced from unknown authors we pay, and stamped with the “we really enjoyed this” guarantee. The tooling and platform will eventually be open to everyone."
]
},
{
Expand Down
5 changes: 2 additions & 3 deletions src/routes/user/profile/Stripe/Customer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,8 @@
</p>
{:else}
<p>
Become an adventurer for $4/month. Adventurers see no ads, access the most
dangerous content four weeks before the masses, and claim a soft spot in our
hearts.
Become an adventurer for $4/month. Adventurers see no ads, access all
content, support our paid creators, and claim a soft spot in our hearts.
</p>

<p>Our hearts are of a very squishy variety, so there's room for everyone.</p>
Expand Down

0 comments on commit 71e6905

Please sign in to comment.