Skip to content

Commit

Permalink
563 support mkdachi2 workflow in frontend (#630)
Browse files Browse the repository at this point in the history
* feat: fixed stylistic issues, added deleteproject button, fixed cypress tests

* feat: added handling for string selection in specification and mkdachi2

* feat: added initial dropdown to select reference dataset

* feat: added second dropdown for group comparison estimators and options to select reference dataset

* feat: added args to post request

* feat: update openapi

* feat: fixed issues with spec editing

* faet: added mkdachi2 support and string selection

* feat: update openapi

* feat: update openapi
  • Loading branch information
nicoalee authored Nov 28, 2023
1 parent e0c3cf4 commit 3996b6c
Show file tree
Hide file tree
Showing 60 changed files with 1,627 additions and 2,770 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ describe(PAGE_NAME, () => {
cy.intercept('GET', `**/api/studies/mock-study-id*`, { fixture: 'study' }).as(
'studyFixture'
);
cy.intercept('GET', `**/api/projects/*`, { fixture: 'project' }).as('projectFixture');
cy.intercept('GET', `**/api/projects/*`, { fixture: 'projects/project' }).as(
'projectFixture'
);
cy.intercept('GET', `**/api/annotations/*`, { fixture: 'annotation' }).as(
'annotationFixture'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const PAGE_NAME = 'LandingPage';

describe(PAGE_NAME, () => {
beforeEach(() => {
cy.clearLocalStorage().clearSessionStorage();
cy.intercept('GET', 'https://api.appzi.io/**', { fixture: 'appzi' }).as('appziFixture');
cy.intercept('GET', `**/api/base-studies/**`, { fixture: 'baseStudies' }).as(
'baseStudiesFixture'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/// <reference types="cypress" />

export {};

const PATH = '/projects/abc123/meta-analyses/mock-meta-analysis-id';
const PAGE_NAME = 'MetaAnalysisPage';

describe(PAGE_NAME, () => {
beforeEach(() => {
cy.clearLocalStorage().clearSessionStorage();
cy.intercept('GET', 'https://api.appzi.io/**', { fixture: 'appzi' }).as('appziFixture');
cy.intercept('GET', `**/api/specifications/**`, { fixture: 'specification' }).as(
'specificationFixture'
);
cy.intercept('GET', `**/api/meta-analyses/**`, { fixture: 'metaAnalysis' }).as(
'metaAnalysisFixture'
);
cy.intercept('GET', `**/api/projects/*`, { fixture: 'projects/project' }).as(
'projectFixture'
);
cy.intercept('GET', `**/api/annotations/*`, { fixture: 'annotation' }).as(
'annotationFixture'
);
cy.intercept('GET', `**/api/studysets/*`, { fixture: 'studyset' }).as('studysetFixture');
});

it('should load successfully', () => {
cy.visit(PATH)
.wait('@specificationFixture')
.wait('@metaAnalysisFixture')
.wait('@projectFixture')
.wait('@annotationFixture')
.wait('@studysetFixture');
});
});
24 changes: 24 additions & 0 deletions compose/neurosynth-frontend/cypress/e2e/pages/ProjectPage.cy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/// <reference types="cypress" />

export {};

const PATH = '/projects/abc123';
const PAGE_NAME = 'ProjectPage';

describe(PAGE_NAME, () => {
beforeEach(() => {
cy.clearLocalStorage().clearSessionStorage();
cy.intercept('GET', 'https://api.appzi.io/**', { fixture: 'appzi' }).as('appziFixture');
cy.intercept('GET', `**/api/meta-analyses*`, { fixture: 'metaAnalyses' }).as(
'metaAnalysesFixture'
);
cy.intercept('GET', `**/api/projects/*`, { fixture: 'projects/projectExtractionStep' }).as(
'projectFixture'
);
cy.intercept('GET', `**/api/studysets/*`, { fixture: 'studyset' }).as('studysetFixture');
});

it('should load successfully', () => {
cy.visit(PATH).wait('@metaAnalysesFixture').wait('@projectFixture');
});
});

This file was deleted.

Loading

0 comments on commit 3996b6c

Please sign in to comment.