Skip to content

Commit

Permalink
Disable jobCreatorUpdate for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Dec 6, 2019
1 parent d72f81e commit e178fd8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 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, jobCreatorUpdate } = useContext(JobCreatorContext);
const { jobCreator } = 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,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(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit e178fd8

Please sign in to comment.