Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
chore: enable all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelass committed Sep 5, 2021
1 parent 217d825 commit 00a0802
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ env:
SENTRY_PROJECT: dekk-homepage
SENTRY_URL: https://sentry.io/
NEXT_PUBLIC_HIDE_COOKIE_CONSENT: true
NEXT_PUBLIC_NO_CACHE: true

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/features/auth/Logout.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Logout
Given the user is logged in
And the user is on the root page

@ignore @logged-in
@logged-in
Scenario: The user wants to logout

When the user clicks the link to the "logout" page
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/features/wishlist/ReadWishes.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Feature: Read Wishes
| 3 | Subject 3 | Body 3 | 10 |
| 4 | Subject 4 | Body 4 | 99 |

@ignore @wishlist @logged-out
@wishlist @logged-out
Scenario: User wants to view all wishes of others

When the user is on the wishlist page
Then the user sees all wishes

@ignore @wishlist @logged-out
@wishlist @logged-out
Scenario Outline: User wants to read a wish

When the user is on the wishlist page
Expand Down
5 changes: 2 additions & 3 deletions src/ions/services/apollo/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ function createApolloClient() {
cache: new InMemoryCache().restore({}),
defaultOptions: {
query: {
fetchPolicy: "cache-first",
// Enable if you want to develop with uncached data
// fetchPolicy: process.env.NODE_ENV === "production" ? "cache-first" : "no-cache",
fetchPolicy:
process.env.NEXT_PUBLIC_NO_CACHE === "true" ? "no-cache" : "cache-first",
errorPolicy: "all",
},
},
Expand Down

0 comments on commit 00a0802

Please sign in to comment.