Skip to content
Snippets Groups Projects
Commit 1a401e9b authored by Johanna Szepanski's avatar Johanna Szepanski
Browse files

Merge branch 'CE-3160-remove-disabling-buttons' into 'develop'

CE-3160: Remove disabling buttons

See merge request !555
parents fbd0a2f4 530febd7
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!555CE-3160: Remove disabling buttons
Pipeline #203191 passed
......@@ -15,6 +15,7 @@
// Import commands.js using ES2015 syntax:
import "./commands";
import { ReduxProvider } from "../../src/store/ReduxProvider";
// Alternatively you can use CommonJS syntax:
// require("./commands")
......@@ -22,8 +23,11 @@ import "./commands";
import { mount } from "cypress/react";
import { interceptAPI } from "./interceptAPI";
import configure from "./configureWindowVars";
Cypress.Commands.add("mount", (component, options = {}) => {
Cypress.Commands.add("mount", mount);
const wrappedComponent = <ReduxProvider>{component}</ReduxProvider>;
return mount(wrappedComponent, options);
});
// Example use:
// cy.mount(<MyComponent />)
......
......@@ -32,7 +32,10 @@ export function IOCService({
const [startJob, { error: jobError, data: jobData }] = useStartJobMutation();
useEffect(() => {
setError(jobError);
if (jobError) {
setError(jobError);
setButtonDisabled(false);
}
}, [jobError]);
useEffect(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment