Skip to content

Commit

Permalink
fix: add redirection host environment variable in cypress CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ReidyT committed Nov 20, 2023
1 parent cefdf33 commit cd4f3f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
VITE_GRAASP_LIBRARY_HOST: ${{ vars.VITE_GRAASP_LIBRARY_HOST }}
VITE_GRAASP_ANALYZER_HOST: ${{ vars.VITE_GRAASP_ANALYZER_HOST }}
VITE_SHOW_NOTIFICATIONS: ${{ vars.VITE_SHOW_NOTIFICATIONS }}
VITE_GRAASP_REDIRECTION_HOST: "http://localhost:3030"

# use the Cypress GitHub Action to run Cypress tests within the chrome browser
- name: Cypress run
Expand All @@ -66,6 +67,8 @@ jobs:
VITE_GRAASP_LIBRARY_HOST: ${{ vars.VITE_GRAASP_LIBRARY_HOST }}
VITE_GRAASP_ANALYZER_HOST: ${{ vars.VITE_GRAASP_ANALYZER_HOST }}
VITE_SHOW_NOTIFICATIONS: ${{ vars.VITE_SHOW_NOTIFICATIONS }}
# TODO: add REDIRECTION_HOST !
VITE_GRAASP_REDIRECTION_HOST: "http://localhost:3030"

# after the test run completes
# store any screenshots
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/item/shortLink/shortLink.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('Short links', () => {

it('Patch short link', () => {
const NEW_SHORT_LINK = 'test-10';
const NEW_PLATFORM = Context.Library;
const NEW_PLATFORM = Context.Builder;
const PATCH_ALIAS = shortLinks[0].alias;

cy.visit(buildItemPath(itemId));
Expand Down Expand Up @@ -185,7 +185,7 @@ describe('Short links', () => {
});

it('Patch short link with random alias', () => {
const NEW_PLATFORM = Context.Library;
const NEW_PLATFORM = Context.Builder;
const PATCH_ALIAS = shortLinks[0].alias;

cy.visit(buildItemPath(itemId));
Expand Down
1 change: 1 addition & 0 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Route, Routes } from 'react-router-dom';
import { saveUrlForRedirection } from '@graasp/sdk';
import { CustomInitialLoader, withAuthorization } from '@graasp/ui';

// TODO: uncomments Sentry code
// import * as Sentry from '@sentry/react';
import { DOMAIN } from '@/config/env';
import { SIGN_IN_PATH } from '@/config/externalPaths';
Expand Down

0 comments on commit cd4f3f7

Please sign in to comment.