Skip to content

Commit

Permalink
Revert "Disable jobCreatorUpdate for tests"
Browse files Browse the repository at this point in the history
This reverts commit e178fd8.
  • Loading branch information
pheyos committed Dec 6, 2019
1 parent e178fd8 commit 49471bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import { JobCreatorContext } from '../../../job_creator_context';
import { Description } from './description';

export const JobDescriptionInput: FC = () => {
const { jobCreator } = useContext(JobCreatorContext);
const { jobCreator, jobCreatorUpdate } = useContext(JobCreatorContext);
const [jobDescription, setJobDescription] = useState(jobCreator.description);

useEffect(() => {
jobCreator.description = jobDescription;
// jobCreatorUpdate();
jobCreatorUpdate();
}, [jobDescription]);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ import { JobCreatorContext } from '../../../job_creator_context';
import { Description } from './description';

export const JobIdInput: FC = () => {
const { jobCreator, jobValidator, jobValidatorUpdated } = useContext(JobCreatorContext);
const { jobCreator, jobCreatorUpdate, jobValidator, jobValidatorUpdated } = useContext(
JobCreatorContext
);
const [jobId, setJobId] = useState(jobCreator.jobId);
const [validation, setValidation] = useState(jobValidator.jobId);

useEffect(() => {
jobCreator.jobId = jobId;
// jobCreatorUpdate();
jobCreatorUpdate();
}, [jobId]);

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import { FtrProviderContext } from '../../../ftr_provider_context';

export default function({ loadTestFile }: FtrProviderContext) {
// eslint-disable-next-line ban/ban
describe.only('anomaly detection', function() {
describe('anomaly detection', function() {
this.tags(['skipFirefox']);

loadTestFile(require.resolve('./single_metric_job'));
Expand Down

0 comments on commit 49471bd

Please sign in to comment.