Disable jobCreatorUpdate for tests
This commit is contained in:
parent
d72f81e1c1
commit
e178fd82ab
|
@ -10,12 +10,12 @@ import { JobCreatorContext } from '../../../job_creator_context';
|
|||
import { Description } from './description';
|
||||
|
||||
export const JobDescriptionInput: FC = () => {
|
||||
const { jobCreator, jobCreatorUpdate } = useContext(JobCreatorContext);
|
||||
const { jobCreator } = useContext(JobCreatorContext);
|
||||
const [jobDescription, setJobDescription] = useState(jobCreator.description);
|
||||
|
||||
useEffect(() => {
|
||||
jobCreator.description = jobDescription;
|
||||
jobCreatorUpdate();
|
||||
// jobCreatorUpdate();
|
||||
}, [jobDescription]);
|
||||
|
||||
return (
|
||||
|
|
|
@ -10,15 +10,13 @@ import { JobCreatorContext } from '../../../job_creator_context';
|
|||
import { Description } from './description';
|
||||
|
||||
export const JobIdInput: FC = () => {
|
||||
const { jobCreator, jobCreatorUpdate, jobValidator, jobValidatorUpdated } = useContext(
|
||||
JobCreatorContext
|
||||
);
|
||||
const { jobCreator, jobValidator, jobValidatorUpdated } = useContext(JobCreatorContext);
|
||||
const [jobId, setJobId] = useState(jobCreator.jobId);
|
||||
const [validation, setValidation] = useState(jobValidator.jobId);
|
||||
|
||||
useEffect(() => {
|
||||
jobCreator.jobId = jobId;
|
||||
jobCreatorUpdate();
|
||||
// jobCreatorUpdate();
|
||||
}, [jobId]);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function({ loadTestFile }: FtrProviderContext) {
|
||||
describe('anomaly detection', function() {
|
||||
// eslint-disable-next-line ban/ban
|
||||
describe.only('anomaly detection', function() {
|
||||
this.tags(['skipFirefox']);
|
||||
|
||||
loadTestFile(require.resolve('./single_metric_job'));
|
||||
|
|
Loading…
Reference in a new issue