Skip to content

Commit

Permalink
fix(frontend): fix onboarding for test specs step (#2708)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeepc committed Jun 12, 2023
1 parent 00282b5 commit f40ff6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/components/TestResults/AddTestSpecButton.tsx
Expand Up @@ -2,6 +2,7 @@ import {CaretDownOutlined} from '@ant-design/icons';
import {Dropdown, Menu} from 'antd';
import React, {useCallback, useMemo} from 'react';

import {StepsID} from 'components/GuidedTour/testRunSteps';
import {useTestSpecForm} from 'components/TestSpecForm/TestSpecForm.provider';
import {TEST_SPEC_SNIPPETS, TSnippet} from 'constants/TestSpecs.constants';
import Span from 'models/Span.model';
Expand Down Expand Up @@ -71,6 +72,7 @@ const AddTestSpecButton = ({selectedSpan}: IProps) => {

return (
<Dropdown.Button
data-tour={StepsID.TestSpecs}
disabled={!isRunStateSucceeded(state)}
overlay={menu}
trigger={['click']}
Expand Down

0 comments on commit f40ff6b

Please sign in to comment.