Skip to content

Commit

Permalink
chore: merged in master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoalee committed Nov 11, 2024
2 parents fc2376e + efdf3d9 commit 8f234c1
Show file tree
Hide file tree
Showing 12 changed files with 6,535 additions and 10,273 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ ENV/

# Spyder project settings
.spyderproject
.vscode

# Rope project settings
.ropeproject
Expand Down
7 changes: 0 additions & 7 deletions compose/neurosynth-frontend/.babelrc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -154,24 +154,30 @@ describe('ExtractionTable', () => {
});
});

it('should remove the filter if the delete button is clicked', () => {
it.only('should remove the filter if the delete button is clicked', () => {
let studysetYear = '';
// ARRANGE
cy.wait('@studysetFixture').then((studysetFixture) => {
const studyset = studysetFixture?.response?.body as StudysetReturn;
const studysetStudies = studyset.studies as StudyReturn[];
studysetYear = studysetStudies[0].year?.toString() || "";
cy.get('input').eq(0).click();
cy.get(`input`)
.eq(0)
.type(studysetStudies[0].year?.toString() || '');
});
cy.get('tbody > tr').should('have.length', 1);
cy.get('[data-testid="CancelIcon"]').should('exist');

// ACT
cy.get('[data-testid="CancelIcon"]').click();
cy.contains(
`Filtering YEAR: ${studysetYear}`
).parent().find('[data-testid="CancelIcon"]').click();

// ASSERT
cy.get('tbody > tr').should('have.length', 3);
cy.get(`[data-testid="CancelIcon"]`).should('not.exist');
cy.contains(
`Filtering YEAR: ${studysetYear}`
).should('not.exist')
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ describe('DoSleuthImport', () => {

it('should select MKDA and create an MKDA meta analysis', () => {
cy.contains('button', 'Yes').click();
cy.get('[type="radio"]').eq(1).click();
cy.get('[type="radio"]').eq(1).click({ force: true });
cy.contains('button', 'create')
.click()
.wait('@specificationPostFixture')
Expand Down
58 changes: 37 additions & 21 deletions compose/neurosynth-frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,38 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier",
"plugin:cypress/recommended",
],
plugins: ["@typescript-eslint", "prettier"],
ignorePatterns: ["dist", ".eslintrc"],
parser: "@typescript-eslint/parser",
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
indent: "off",
"prettier/prettier": 4,
import tsParser from '@typescript-eslint/parser';
import eslint from '@eslint/js';
import teslint from 'typescript-eslint';
import eslintHooks from 'eslint-plugin-react-hooks';
import eslintCypress from 'eslint-plugin-cypress/flat';
import eslintPrettier from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import eslintReactRefresh from 'eslint-plugin-react-refresh';

export default [
eslint.configs.recommended,
...teslint.configs.recommended,
eslintCypress.configs.recommended,
eslintPrettier,
{
languageOptions: {
globals: {
...globals.browser,
},
parser: tsParser,
parserOptions: {
ecmaFeatures: {
modules: true,
},
ecmaVersion: 2020,
project: './tsconfig.json',
},
},
plugins: {
'react-hooks': eslintHooks,
'react-refresh': eslintReactRefresh,
},
rules: {
...eslintHooks.configs.recommended.rules,
'react-refresh/only-export-components': 'warn',
},
},
};
];
Loading

0 comments on commit 8f234c1

Please sign in to comment.