1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

fix: add new steps to demo guide (#6112)

This PR adds the necessary steps for the demo guidance to work properly
with the new form
This commit is contained in:
Fredrik Strand Oseberg 2024-02-05 11:36:15 +01:00 committed by GitHub
parent c83c43718c
commit 6a70ba0cd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 35 additions and 0 deletions

View File

@ -151,6 +151,17 @@ export const TOPICS: ITutorialTopic[] = [
optional: true,
backCloseModal: true,
},
{
target: 'button[data-testid="STRATEGY_TARGETING_TAB"]',
content: (
<>
<Description>
<Typography>Select the Targeting tab.</Typography>
</Description>
</>
),
backCloseModal: true,
},
{
target: 'button[data-testid="ADD_CONSTRAINT_BUTTON"]',
content: (
@ -468,6 +479,17 @@ export const TOPICS: ITutorialTopic[] = [
</Description>
),
},
{
target: 'button[data-testid="STRATEGY_TARGETING_TAB"]',
content: (
<>
<Description>
<Typography>Select the Targeting tab.</Typography>
</Description>
</>
),
backCloseModal: true,
},
{
target: 'button[data-testid="ADD_CONSTRAINT_BUTTON"]',
content: (
@ -574,6 +596,17 @@ export const TOPICS: ITutorialTopic[] = [
</Description>
),
},
{
target: 'button[data-testid="STRATEGY_VARIANTS_TAB"]',
content: (
<>
<Description>
<Typography>Select the Variants tab.</Typography>
</Description>
</>
),
backCloseModal: true,
},
{
target: 'button[data-testid="ADD_STRATEGY_VARIANT_BUTTON"]',
content: (

View File

@ -451,6 +451,7 @@ export const NewFeatureStrategyForm = ({
<StyledTabs value={tab} onChange={handleChange}>
<StyledTab label='General' />
<Tab
data-testid='STRATEGY_TARGETING_TAB'
label={
<Typography>
Targeting
@ -460,6 +461,7 @@ export const NewFeatureStrategyForm = ({
/>
{showVariants && (
<Tab
data-testid='STRATEGY_VARIANTS_TAB'
label={
<Typography>
Variants