Skip to content

Commit

Permalink
Merge pull request #782 from opencb/TASK-1192
Browse files Browse the repository at this point in the history
TASK-1192 - Migrate IVA to new Bootstrap 5.3.x
  • Loading branch information
Rodielm authored May 7, 2024
2 parents 71642bb + 1a6b792 commit 52df910
Show file tree
Hide file tree
Showing 289 changed files with 7,066 additions and 11,972 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
"rules": {
"indent": ["error", 4, {
"SwitchCase": 1,
"ignoredNodes": ["TemplateLiteral"]
"ignoredNodes": ["TemplateLiteral","TaggedTemplateExpression","ObjectExpression","ArrowFunctionExpression"]
}
],
"no-multiple-empty-lines":["error",{"max":1}],
"max-len": ["error", 230],
"no-console": ["error", { "allow": ["log", "warn", "error", "time", "timeEnd"] }],
"no-param-reassign": ["warn", { "props": true }],
Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/pre-commit

This file was deleted.

50 changes: 8 additions & 42 deletions cypress/e2e/commons/data-form.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,18 @@ describe("Data Form Component", () => {
});

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

it("should render toggle buttons", () => {
UtilsTest.getByDataTest("test1-inputToggleButtons","button")
UtilsTest.getByDataTest("test1-inputToggleButtons","input")
.should("have.length",3)
});
})


context("Complex Field", () => {
context.only("Complex Field", () => {
it("should render object list", () => {
cy.log("Soon! render object list form");
});
Expand Down Expand Up @@ -235,13 +235,8 @@ describe("Data Form Component", () => {
});

it("should a table", () => {
cy.get("label")
.contains("Table Example")
.parents("div[class='row form-group ']")
.within(() => {
cy.get("table")
.should("be.visible");
});
UtilsTest.getByDataTest("test1-inputTable", "table")
.should("be.visible");
});

it("should render 3 simple charts", () => {
Expand All @@ -267,41 +262,12 @@ describe("Data Form Component", () => {
// Add element to the list
// Remove element to the list
// check require, validation, disable and others for inputc

// test: check if generate correctly url
// test: check if generate correctly url


// it("when submit is pressed, input display error for empty field", () => {
// // how to identify btn data-form
// cy.get("button[class='btn btn-primary ']").contains("OK").click();

// // TODO: search all input with require attr and verify is it visible
// cy.get(".has-error").should("be.visible");
// });

// how to identify btn data-form
// search all input with require attr and verify is it visible
// it("should type the first input field", () => {
// UtilsTest.getByDataTest("test1--id", "input").type("testing input fill");
// // cy.get("div[data-test-id='test1--status.description'] textarea").type("testing input fill");

// UtilsTest.getByDataTest("test1--status.description", "textarea").type("testing input fill");
// // cy.get("button[class='btn btn-primary ']").contains("OK").click();
// });

// // Approach #3 to access to type field (More specific field)
// it.skip("should type the first input field", () => {
// // cy.get("label").contains("Sample ID").parents("div[class='row form-group ']").within(()=> {
// // cy.get("input[type='text']").type("testing input fill");
// // });
// UtilsTest.enterField("Sample ID", "testing values");
// UtilsTest.submitForm();
// });

// it("the second field should be disabled", () => {
// // cy.get("textarea").first().should("be.disabled");
// UtilsTest.getByDataTest("test1--description", "textarea")
// .should("be.disabled");
// });
// Approach #3 to access to type field (More specific field)

});

67 changes: 0 additions & 67 deletions cypress/e2e/iva-remote/003-login.cy.js

This file was deleted.

82 changes: 0 additions & 82 deletions cypress/e2e/iva-remote/004-header-bar-post-login.cy.js

This file was deleted.

Loading

0 comments on commit 52df910

Please sign in to comment.