Skip to content

Commit

Permalink
fix flushredis calls
Browse files Browse the repository at this point in the history
  • Loading branch information
s0hv committed Aug 13, 2023
1 parent 8dc3b8f commit 1f2f1ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions web/cypress/e2e/auth/data-management.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { CreatedUser } from '../../types';
import { nextAuthSessionCookie } from '../../constants';

describe('Account data management', () => {
cy.task('flushRedis');

describe('Request account data', () => {
it('is possible to download your data', () => {
cy.task('flushRedis');

// Create a new user and log in
cy.task<CreatedUser>('createUser')
.then(user => {
Expand Down Expand Up @@ -42,6 +42,8 @@ describe('Account data management', () => {

describe('Delete account', () => {
it('is possible to delete your own account', () => {
cy.task('flushRedis');

// Create a new user and log in
cy.task<CreatedUser>('createUser')
.then(user => {
Expand Down
2 changes: 1 addition & 1 deletion web/cypress/e2e/auth/login-features.cy.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { normalUser } from '../../../__tests__/constants';

describe('Login redirect works', () => {
cy.task('flushRedis');
it.only('Redirects back to /manga/1 after logging in', () => {
cy.task('flushRedis');
cy.visit('/manga/1');

cy.findByRole('button', { name: /login/i }).click();
Expand Down

0 comments on commit 1f2f1ce

Please sign in to comment.