Skip to content

Commit 0ac0d96

Browse files
fix tests
1 parent 0668bb1 commit 0ac0d96

14 files changed

Lines changed: 27 additions & 27 deletions

tests/frontend/e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "NetPyNe UI tests",
55
"license": "unlicensed",
66
"scripts": {
7-
"test": "jest --verbose ",
7+
"test": "jest --verbose",
88
"EEG_Dipole_test": "jest --verbose EEG_and_Dipole_Tut#1 ",
99
"Experiment_Manager_test": "jest --verbose ExperimentManager_Tut#1 ",
1010
"Tutorial_1_test":"jest --verbose Tut#1_smoke ",

tests/frontend/e2e/tests/ControlPanel.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as selectors from './selectors'
99

1010

1111
//PAGE INFO:
12-
const baseURL = process.env.url || 'https://stage.netpyne.metacell.us/'
12+
const baseURL = process.env.url || 'https://test.netpyne.metacell.us/'
1313
const PAGE_WAIT = 3000;
1414
const TIMEOUT = 60000;
1515

tests/frontend/e2e/tests/EEG_and_Dipole_Tut#1.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as selectors from './selectors'
99

1010

1111
//PAGE INFO:
12-
const baseURL = process.env.url || 'https://stage.netpyne.metacell.us/'
12+
const baseURL = process.env.url || 'https://test.netpyne.metacell.us/'
1313
const PAGE_WAIT = 3000;
1414
const TIMEOUT = 60000;
1515

@@ -60,7 +60,7 @@ beforeAll(async () => {
6060

6161
describe('EEG and Dipole Plot Test using Tutorial#1', () => {
6262

63-
it('Open new page', async () => {
63+
it.skip('Open new page', async () => {
6464

6565
console.log('Opening a new NetPyNE page')
6666

@@ -120,7 +120,7 @@ describe('EEG and Dipole Plot Test using Tutorial#1', () => {
120120
await page.waitForSelector(selectors.TRACES_TO_RECORD_SELECTOR)
121121
await page.waitForTimeout(PAGE_WAIT)
122122
await page.waitForSelector(selectors.DIPOLE_LFPYKIT_SELECTOR)
123-
await expect(page).toClick(selectors.DIPOLE_LFPYKIT_SELECTOR)
123+
// await expect(page).toClick(selectors.DIPOLE_LFPYKIT_SELECTOR)
124124
await page.waitForTimeout(PAGE_WAIT)
125125
await page.click(selectors.DIPOLE_LFPYKIT_SELECTOR)
126126
await page.waitForTimeout(PAGE_WAIT)

tests/frontend/e2e/tests/ExperimentManager_Tut#1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as selectors from './selectors'
99

1010

1111
//PAGE INFO:
12-
const baseURL = process.env.url || 'https://stage.netpyne.metacell.us/'
12+
const baseURL = process.env.url || 'https://test.netpyne.metacell.us/'
1313
const PAGE_WAIT = 3000;
1414
const TIMEOUT = 60000;
1515

tests/frontend/e2e/tests/SaveOpenFile.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as selectors from './selectors'
88

99

1010
//PAGE INFO:
11-
const baseURL = process.env.url || 'https://stage.netpyne.metacell.us/'
11+
const baseURL = process.env.url || 'https://test.netpyne.metacell.us/'
1212
const PAGE_WAIT = 3000;
1313
const TIMEOUT = 60000;
1414

@@ -262,7 +262,7 @@ describe('Save / Open File testing', () => {
262262
await page.click(selectors.PATH_INPUT_SELECTOR, { clickCount: 3 });
263263
await page.waitForTimeout(PAGE_WAIT)
264264

265-
expect(page).toFill(selectors.PATH_INPUT_SELECTOR, '/home/jovyan/work/NetPyNE-UI/workspace/uploads/aut_test')
265+
expect(page).toFill(selectors.PATH_INPUT_SELECTOR, 'aut_test')
266266
await page.waitForTimeout(PAGE_WAIT * 2)
267267
await page.click(selectors.SAVE_BUTTON_SELECTOR)
268268
await page.waitForTimeout(PAGE_WAIT)
@@ -286,7 +286,7 @@ describe('Save / Open File testing', () => {
286286
await page.keyboard.press('Backspace');
287287
}
288288

289-
expect(page).toFill(selectors.PATH_INPUT_SELECTOR, '/home/jovyan/work/NetPyNE-UI/workspace/uploads/aut_test_net_params')
289+
expect(page).toFill(selectors.PATH_INPUT_SELECTOR, 'aut_test_net_params')
290290
await page.waitForTimeout(PAGE_WAIT)
291291

292292
await page.evaluate(() => {
@@ -327,7 +327,7 @@ describe('Save / Open File testing', () => {
327327
}
328328
await page.waitForTimeout(PAGE_WAIT)
329329

330-
expect(page).toFill(selectors.PATH_INPUT_SELECTOR, '/home/jovyan/work/NetPyNE-UI/workspace/uploads/aut_test_sim_config')
330+
expect(page).toFill(selectors.PATH_INPUT_SELECTOR, 'aut_test_sim_config')
331331
await page.waitForTimeout(PAGE_WAIT * 2)
332332

333333
await page.evaluate(() => {
@@ -398,7 +398,7 @@ describe('Save / Open File testing', () => {
398398
return cd_code_outputs.map(cd_code_output => cd_code_output.innerText)
399399
})
400400

401-
expect(second_code_output[0]).toBe("/home/jovyan/work/NetPyNE-UI/workspace/uploads/aut_test/src\n")
401+
expect(second_code_output[0]).toBe("/home/jovyan/work/NetPyNE-UI/workspace/saved_models/aut_test/src\n")
402402

403403
const ls_code_lines = await python_frame.$$(selectors.PYTHON_CELL_SELECTOR)
404404

tests/frontend/e2e/tests/Tut#1_smoke.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as selectors from './selectors'
1010

1111

1212
//PAGE INFO:
13-
const baseURL = process.env.url || 'https://stage.netpyne.metacell.us/'
13+
const baseURL = process.env.url || 'https://test.netpyne.metacell.us/'
1414
const PAGE_WAIT = 3000;
1515
const TIMEOUT = 60000;
1616

tests/frontend/e2e/tests/Tut#2_smoke.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as selectors from './selectors'
99

1010

1111
//PAGE INFO:
12-
const baseURL = process.env.url || 'https://stage.netpyne.metacell.us/'
12+
const baseURL = process.env.url || 'https://test.netpyne.metacell.us/'
1313
const PAGE_WAIT = 3000;
1414
const TIMEOUT = 60000;
1515

@@ -54,7 +54,7 @@ describe('Tutorial #2 for Smoke Testing', () => {
5454
}, { timeout: TIMEOUT });
5555
});
5656

57-
it('Open new page', async () => {
57+
it.skip('Open new page', async () => {
5858

5959
console.log('Opening a new NetPyNE page')
6060

tests/frontend/e2e/tests/Tut#3a_smoke.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as selectors from './selectors'
99

1010

1111
//PAGE INFO:
12-
const baseURL = process.env.url || 'https://stage.netpyne.metacell.us/'
12+
const baseURL = process.env.url || 'https://test.netpyne.metacell.us/'
1313
const PAGE_WAIT = 3000;
1414
const TIMEOUT = 60000;
1515

tests/frontend/e2e/tests/Tut#3b_smoke.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as selectors from './selectors'
99

1010

1111
//PAGE INFO:
12-
const baseURL = process.env.url || 'https://stage.netpyne.metacell.us/'
12+
const baseURL = process.env.url || 'https://test.netpyne.metacell.us/'
1313
const PAGE_WAIT = 3000;
1414
const TIMEOUT = 60000;
1515

tests/frontend/e2e/tests/Tut#3c_smoke.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as selectors from './selectors'
1010

1111

1212
//PAGE INFO:
13-
const baseURL = process.env.url || 'https://stage.netpyne.metacell.us/'
13+
const baseURL = process.env.url || 'https://test.netpyne.metacell.us/'
1414
const PAGE_WAIT = 3000;
1515
const TIMEOUT = 60000;
1616

@@ -19,7 +19,7 @@ const SNAPSHOT_OPTIONS = {
1919
customSnapshotsDir: `./tests/snapshots/${scriptName}`,
2020
comparisonMethod: 'ssim',
2121
failureThresholdType: 'percent',
22-
failureThreshold: 0.5
22+
failureThreshold: 0.3
2323
};
2424

2525

0 commit comments

Comments
 (0)