Skip to content

Commit a0bf7eb

Browse files
Merge branch 'v4.0.0-beta.3' into 'master'
V4.0.0-beta.3 See merge request es/autosubmitreact!18
2 parents 513415d + 3a307c8 commit a0bf7eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+23570
-25891
lines changed

.gitignore

+35-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,47 @@
1-
node_modules/.cache/
2-
./node_modules
3-
node_modules
4-
.vscode
5-
/build/
6-
/.idea/
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
78

89
# testing
910
/coverage
1011

12+
# next.js
13+
/.next/
14+
/out/
15+
1116
# production
1217
/build
1318

1419
# misc
1520
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts
37+
38+
# ide
39+
.vscode
40+
/.idea/
1641

1742
# config
1843
.env
19-
.env.*
44+
.env.*
45+
46+
# misc
47+
.nyc_output/

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14.21.3
1+
lts/iron

cypress.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const { defineConfig } = require("cypress");
2+
3+
module.exports = defineConfig({
4+
e2e: {
5+
setupNodeEvents(on, config) {
6+
require('@cypress/code-coverage/task')(on, config)
7+
8+
return config
9+
}
10+
},
11+
});

cypress/e2e/home.cy.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
describe('Home Page Search Flow', () => {
3+
it('Write and clear filter', () => {
4+
cy.intercept("GET", Cypress.env('EXTERNAL_API') + "/v4/experiments?*", {
5+
fixture: "api/v4/experiments/oneresult.json"
6+
}).as("dummy_response")
7+
8+
cy.visit('/')
9+
10+
const expid = "a0it"
11+
cy.get("#search-input").type(expid)
12+
cy.get("#search-btn").click()
13+
cy.url().should('include', `query=${expid}`)
14+
cy.url().should('include', `page=1`)
15+
16+
cy.get("#search-clear").click()
17+
cy.url().should('not.include', `query=${expid}`)
18+
cy.url().should('include', `page=1`)
19+
20+
cy.get("#search-input").type(expid).type('{enter}')
21+
cy.url().should('include', `query=${expid}`)
22+
cy.url().should('include', `page=1`)
23+
})
24+
})

cypress/e2e/initial.cy.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
describe('Initial', () => {
2+
it('Webserver is working', () => {
3+
cy.visit('/')
4+
})
5+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"experiments": [
3+
{
4+
"completed": 1,
5+
"description": "Francesc",
6+
"failed": 0,
7+
"hpc": "LUMI",
8+
"id": 14,
9+
"modified": "2024-01-19 12:12:23",
10+
"name": "a0it",
11+
"queuing": 0,
12+
"running": 0,
13+
"status": "NOT RUNNING",
14+
"submitted": 0,
15+
"suspended": 0,
16+
"total": 874,
17+
"user": "froura",
18+
"version": "4.1.0",
19+
"wrapper": null
20+
}
21+
],
22+
"pagination": {
23+
"page": 1,
24+
"page_items": 1,
25+
"page_size": 12,
26+
"total_items": 1,
27+
"total_pages": 1
28+
}
29+
}

cypress/fixtures/error.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"error": true,
3+
"error_message": "Unknown error"
4+
}

cypress/support/commands.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// ***********************************************
2+
// This example commands.js shows you how to
3+
// create various custom commands and overwrite
4+
// existing commands.
5+
//
6+
// For more comprehensive examples of custom
7+
// commands please read more here:
8+
// https://on.cypress.io/custom-commands
9+
// ***********************************************
10+
//
11+
//
12+
// -- This is a parent command --
13+
// Cypress.Commands.add('login', (email, password) => { ... })
14+
//
15+
//
16+
// -- This is a child command --
17+
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
18+
//
19+
//
20+
// -- This is a dual command --
21+
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
22+
//
23+
//
24+
// -- This will overwrite an existing command --
25+
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })

cypress/support/e2e.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// ***********************************************************
2+
// This example support/e2e.js is processed and
3+
// loaded automatically before your test files.
4+
//
5+
// This is a great place to put global configuration and
6+
// behavior that modifies Cypress.
7+
//
8+
// You can change the location of this file or turn off
9+
// automatically serving support files with the
10+
// 'supportFile' configuration option.
11+
//
12+
// You can read more here:
13+
// https://on.cypress.io/configuration
14+
// ***********************************************************
15+
16+
// Import commands.js using ES2015 syntax:
17+
import './commands'
18+
import '@cypress/code-coverage/support'
19+
20+
// Alternatively you can use CommonJS syntax:
21+
// require('./commands')

0 commit comments

Comments
 (0)