Skip to content
Snippets Groups Projects

CE-3061: Update ioc alerts and status separately

Merged Johanna Szepanski requested to merge CE-3061-update-IOC-alerts-async into develop
@@ -6,10 +6,10 @@ const textColumns = ["IOC name", "Description", "Host", "Network"];
@@ -6,10 +6,10 @@ const textColumns = ["IOC name", "Description", "Host", "Network"];
const columns = ["Status"].concat(textColumns);
const columns = ["Status"].concat(textColumns);
const firstRowData = [
const firstRowData = [
"Active with alert(s) 1 warnings1 errors !",
"Active with alert(s) 1 warnings1 errors !",
"CCCE:MOCK1",
"CCCE:MOCK4",
"Some description",
"---",
"vacs-accv-vm-ioc",
"ccce-test-ioc-02",
"ChannelAccess-FEB"
"CSLab-GeneralLab"
];
];
describe("IOCTable", () => {
describe("IOCTable", () => {
@@ -31,9 +31,9 @@ describe("IOCTable", () => {
@@ -31,9 +31,9 @@ describe("IOCTable", () => {
.should("have.length", textColumns.length - 1);
.should("have.length", textColumns.length - 1);
});
});
it("Displays correct content in first row", () => {
it("Displays correct content in third row", () => {
cy.findAllByRole("row")
cy.findAllByRole("row")
.eq(1) // first row is headers, so get next index
.eq(4) // first row is headers, so get next index
.each(($el, index) => {
.each(($el, index) => {
if (index === 0) {
if (index === 0) {
const iconTitle = firstRowData[index];
const iconTitle = firstRowData[index];
Loading