Skip to content

Commit 8f234c1

Browse files
committed
chore: merged in master branch
2 parents fc2376e + efdf3d9 commit 8f234c1

File tree

12 files changed

+6535
-10273
lines changed

12 files changed

+6535
-10273
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ ENV/
102102

103103
# Spyder project settings
104104
.spyderproject
105-
.vscode
106105

107106
# Rope project settings
108107
.ropeproject

compose/neurosynth-frontend/.babelrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

compose/neurosynth-frontend/cypress/e2e/workflows/Extraction/ExtractionTable.cy.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,24 +154,30 @@ describe('ExtractionTable', () => {
154154
});
155155
});
156156

157-
it('should remove the filter if the delete button is clicked', () => {
157+
it.only('should remove the filter if the delete button is clicked', () => {
158+
let studysetYear = '';
158159
// ARRANGE
159160
cy.wait('@studysetFixture').then((studysetFixture) => {
160161
const studyset = studysetFixture?.response?.body as StudysetReturn;
161162
const studysetStudies = studyset.studies as StudyReturn[];
163+
studysetYear = studysetStudies[0].year?.toString() || "";
162164
cy.get('input').eq(0).click();
163165
cy.get(`input`)
164166
.eq(0)
165167
.type(studysetStudies[0].year?.toString() || '');
166168
});
167169
cy.get('tbody > tr').should('have.length', 1);
168-
cy.get('[data-testid="CancelIcon"]').should('exist');
170+
169171
// ACT
170-
cy.get('[data-testid="CancelIcon"]').click();
172+
cy.contains(
173+
`Filtering YEAR: ${studysetYear}`
174+
).parent().find('[data-testid="CancelIcon"]').click();
171175

172176
// ASSERT
173177
cy.get('tbody > tr').should('have.length', 3);
174-
cy.get(`[data-testid="CancelIcon"]`).should('not.exist');
178+
cy.contains(
179+
`Filtering YEAR: ${studysetYear}`
180+
).should('not.exist')
175181
});
176182
});
177183

compose/neurosynth-frontend/cypress/e2e/workflows/SleuthImport/DoSleuthImport.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ describe('DoSleuthImport', () => {
422422

423423
it('should select MKDA and create an MKDA meta analysis', () => {
424424
cy.contains('button', 'Yes').click();
425-
cy.get('[type="radio"]').eq(1).click();
425+
cy.get('[type="radio"]').eq(1).click({ force: true });
426426
cy.contains('button', 'create')
427427
.click()
428428
.wait('@specificationPostFixture')
Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,38 @@
1-
module.exports = {
2-
root: true,
3-
env: { browser: true, es2020: true },
4-
extends: [
5-
"eslint:recommended",
6-
"plugin:@typescript-eslint/recommended",
7-
"plugin:react-hooks/recommended",
8-
"prettier",
9-
"plugin:cypress/recommended",
10-
],
11-
plugins: ["@typescript-eslint", "prettier"],
12-
ignorePatterns: ["dist", ".eslintrc"],
13-
parser: "@typescript-eslint/parser",
14-
rules: {
15-
"react-refresh/only-export-components": [
16-
"warn",
17-
{ allowConstantExport: true },
18-
],
19-
indent: "off",
20-
"prettier/prettier": 4,
1+
import tsParser from '@typescript-eslint/parser';
2+
import eslint from '@eslint/js';
3+
import teslint from 'typescript-eslint';
4+
import eslintHooks from 'eslint-plugin-react-hooks';
5+
import eslintCypress from 'eslint-plugin-cypress/flat';
6+
import eslintPrettier from 'eslint-plugin-prettier/recommended';
7+
import globals from 'globals';
8+
import eslintReactRefresh from 'eslint-plugin-react-refresh';
9+
10+
export default [
11+
eslint.configs.recommended,
12+
...teslint.configs.recommended,
13+
eslintCypress.configs.recommended,
14+
eslintPrettier,
15+
{
16+
languageOptions: {
17+
globals: {
18+
...globals.browser,
19+
},
20+
parser: tsParser,
21+
parserOptions: {
22+
ecmaFeatures: {
23+
modules: true,
24+
},
25+
ecmaVersion: 2020,
26+
project: './tsconfig.json',
27+
},
28+
},
29+
plugins: {
30+
'react-hooks': eslintHooks,
31+
'react-refresh': eslintReactRefresh,
32+
},
33+
rules: {
34+
...eslintHooks.configs.recommended.rules,
35+
'react-refresh/only-export-components': 'warn',
36+
},
2137
},
22-
};
38+
];

0 commit comments

Comments
 (0)