Skip to content

Commit aec3471

Browse files
Merge branch 'release-3.x.x' into TASK-7531
2 parents 7e2c3aa + 497c9c4 commit aec3471

File tree

420 files changed

+22431
-61569
lines changed

Some content is hidden

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

420 files changed

+22431
-61569
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
"rules": {
2222
"indent": ["error", 4, {
2323
"SwitchCase": 1,
24-
"ignoredNodes": ["TemplateLiteral"]
24+
"ignoredNodes": ["TemplateLiteral","TaggedTemplateExpression","ObjectExpression","ArrowFunctionExpression"]
2525
}
2626
],
27+
"no-multiple-empty-lines":["error",{"max":1}],
2728
"max-len": ["error", 230],
2829
"no-console": ["error", { "allow": ["log", "warn", "error", "time", "timeEnd"] }],
2930
"no-param-reassign": ["warn", { "props": true }],

.github/workflows/build-jsorolla-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
version: ${{ steps.package.outputs.version }}
1616
steps:
1717
- name: "Checkout JSorolla"
18-
uses: actions/checkout@v3
19-
- uses: actions/setup-node@v3
18+
uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
2020
with:
2121
node-version: "16"
2222
cache: "npm"

.github/workflows/deploy-docker-jsorolla.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-22.04
1919
steps:
2020
- name: "Checkout Jsorolla"
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
- uses: actions/download-artifact@v4
2323
with:
2424
name: build-folder

.github/workflows/develop.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
test:
1414
uses: ./.github/workflows/test.yml
1515
needs: build
16-
with:
17-
test_profile: runShortTests
18-
secrets: inherit
1916

2017
deploy-docker:
2118
uses: ./.github/workflows/deploy-docker-jsorolla.yml
@@ -25,8 +22,9 @@ jobs:
2522
secrets: inherit
2623

2724
deploy-web:
28-
uses: ./.github/workflows/deploy-jsorolla-web-workflow.yml
29-
needs: [ build, test ]
25+
uses: opencb/java-common-libs/.github/workflows/publish-test-report-workflow.yml@develop
26+
needs: build
3027
with:
31-
version: ${{ needs.build.outputs.version }}
28+
target_path: /var/www/html/iva/builds/${{ needs.build.outputs.version }}
29+
content: build-folder
3230
secrets: inherit

.github/workflows/long-test-execution.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@ on:
88
jobs:
99
test:
1010
uses: ./.github/workflows/test.yml
11-
with:
12-
test_profile: runShortTests,runMediumTests,runLongTests
13-
secrets: inherit

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ jobs:
1717
secrets: inherit
1818

1919
deploy-web:
20-
uses: ./.github/workflows/deploy-jsorolla-web-workflow.yml
20+
uses: opencb/java-common-libs/.github/workflows/publish-test-report-workflow.yml@develop
2121
needs: build
2222
with:
23-
version: ${{ needs.build.outputs.version }}
23+
target_path: /var/www/html/iva/builds/${{ needs.build.outputs.version }}
24+
content: build-folder
2425
secrets: inherit
2526

2627
release:

.github/workflows/task.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
test:
1313
uses: ./.github/workflows/test.yml
1414
needs: build
15-
with:
16-
test_profile: runShortTests
17-
secrets: inherit
1815

1916
deploy-docker:
2017
uses: ./.github/workflows/deploy-docker-jsorolla.yml

.github/workflows/test.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,16 @@ name: "Build and Run tests"
22

33
on:
44
workflow_call:
5-
inputs:
6-
test_profile:
7-
type: string
8-
required: true
9-
secrets:
10-
SONAR_TOKEN:
11-
required: true
125

136
jobs:
147
test:
158
name: "Test and push Sonar analysis"
169
runs-on: ubuntu-22.04
1710
steps:
18-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1912
with:
2013
fetch-depth: '0'
21-
- uses: actions/setup-node@v3
14+
- uses: actions/setup-node@v4
2215
with:
2316
node-version: "16"
2417
cache: "npm"

cypress/e2e/commons/data-form.cy.js

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,18 @@ describe("Data Form Component", () => {
154154
});
155155

156156
it("should render toggle switch", () => {
157-
UtilsTest.getByDataTest("test1-inputToggleSwitch","button")
157+
UtilsTest.getByDataTest("test1-inputToggleSwitch","input")
158158
.should("have.length",2)
159159
});
160160

161161
it("should render toggle buttons", () => {
162-
UtilsTest.getByDataTest("test1-inputToggleButtons","button")
162+
UtilsTest.getByDataTest("test1-inputToggleButtons","input")
163163
.should("have.length",3)
164164
});
165165
})
166166

167167

168-
context("Complex Field", () => {
168+
context.only("Complex Field", () => {
169169
it("should render object list", () => {
170170
cy.log("Soon! render object list form");
171171
});
@@ -235,13 +235,8 @@ describe("Data Form Component", () => {
235235
});
236236

237237
it("should a table", () => {
238-
cy.get("label")
239-
.contains("Table Example")
240-
.parents("div[class='row form-group ']")
241-
.within(() => {
242-
cy.get("table")
243-
.should("be.visible");
244-
});
238+
UtilsTest.getByDataTest("test1-inputTable", "table")
239+
.should("be.visible");
245240
});
246241

247242
it("should render 3 simple charts", () => {
@@ -267,41 +262,12 @@ describe("Data Form Component", () => {
267262
// Add element to the list
268263
// Remove element to the list
269264
// check require, validation, disable and others for inputc
270-
271265
// test: check if generate correctly url
272-
// test: check if generate correctly url
273-
274-
275266
// it("when submit is pressed, input display error for empty field", () => {
276-
// // how to identify btn data-form
277-
// cy.get("button[class='btn btn-primary ']").contains("OK").click();
278-
279-
// // TODO: search all input with require attr and verify is it visible
280-
// cy.get(".has-error").should("be.visible");
281-
// });
282-
267+
// how to identify btn data-form
268+
// search all input with require attr and verify is it visible
283269
// it("should type the first input field", () => {
284-
// UtilsTest.getByDataTest("test1--id", "input").type("testing input fill");
285-
// // cy.get("div[data-test-id='test1--status.description'] textarea").type("testing input fill");
286-
287-
// UtilsTest.getByDataTest("test1--status.description", "textarea").type("testing input fill");
288-
// // cy.get("button[class='btn btn-primary ']").contains("OK").click();
289-
// });
290-
291-
// // Approach #3 to access to type field (More specific field)
292-
// it.skip("should type the first input field", () => {
293-
// // cy.get("label").contains("Sample ID").parents("div[class='row form-group ']").within(()=> {
294-
// // cy.get("input[type='text']").type("testing input fill");
295-
// // });
296-
// UtilsTest.enterField("Sample ID", "testing values");
297-
// UtilsTest.submitForm();
298-
// });
299-
300-
// it("the second field should be disabled", () => {
301-
// // cy.get("textarea").first().should("be.disabled");
302-
// UtilsTest.getByDataTest("test1--description", "textarea")
303-
// .should("be.disabled");
304-
// });
270+
// Approach #3 to access to type field (More specific field)
305271

306272
});
307273

cypress/e2e/iva-remote/003-login.cy.js

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

0 commit comments

Comments
 (0)