diff --git a/src/web/pages/tasks/__tests__/row.jsx b/src/web/pages/tasks/__tests__/row.jsx index 9e07f3e176..44b0cbab62 100644 --- a/src/web/pages/tasks/__tests__/row.jsx +++ b/src/web/pages/tasks/__tests__/row.jsx @@ -285,7 +285,7 @@ describe('Task Row tests', () => { fireEvent.click(icons[0]); expect(handleTaskStart).toHaveBeenCalledWith(task); expect(icons[0]).toHaveAttribute('title', 'Start'); - /* + fireEvent.click(icons[1]); expect(handleTaskResume).not.toHaveBeenCalled(); expect(icons[1]).toHaveAttribute('title', 'Task is not stopped'); @@ -304,7 +304,7 @@ describe('Task Row tests', () => { fireEvent.click(icons[5]); expect(handleTaskDownload).toHaveBeenCalledWith(task); - expect(icons[5]).toHaveAttribute('title', 'Export Task'); */ + expect(icons[5]).toHaveAttribute('title', 'Export Task'); }); test('should call click handlers for running task', () => { diff --git a/src/web/pages/tasks/icons/__tests__/TaskIconsWithSync.jsx b/src/web/pages/tasks/icons/__tests__/TaskIconsWithSync.jsx index f93f897cd5..ca4aca71af 100644 --- a/src/web/pages/tasks/icons/__tests__/TaskIconsWithSync.jsx +++ b/src/web/pages/tasks/icons/__tests__/TaskIconsWithSync.jsx @@ -70,11 +70,11 @@ describe('TaskIconWithSync component tests', () => { expect(element).toHaveAttribute('title', expectedTitle); if (expectedFill) { expect(element).toHaveStyleRule('fill', Theme.inputBorderGray, { - modifier: `svg path`, + modifier: 'svg path.gui_icon_class', }); } else { expect(element).not.toHaveStyleRule('fill', Theme.inputBorderGray, { - modifier: `svg path`, + modifier: 'svg path.gui_icon_class', }); } },