Skip to content

Commit

Permalink
Fix UI snapshot selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Dec 5, 2024
1 parent 6363fe3 commit a7c7145
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions frontend/src/scenes/settings/SettingsScene.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const SettingsProject: StoryFn = () => {
return <App />
}
SettingsProject.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

export const SettingsProjectWithReplayFeatures: StoryFn = () => {
Expand All @@ -61,7 +61,7 @@ export const SettingsProjectWithReplayFeatures: StoryFn = () => {
return <App />
}
SettingsProjectWithReplayFeatures.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

export const SettingsUser: StoryFn = () => {
Expand All @@ -71,7 +71,7 @@ export const SettingsUser: StoryFn = () => {
return <App />
}
SettingsUser.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

export const SettingsOrganization: StoryFn = () => {
Expand All @@ -81,7 +81,7 @@ export const SettingsOrganization: StoryFn = () => {
return <App />
}
SettingsOrganization.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

export const SettingsWebVitals: StoryFn = () => {
Expand All @@ -91,7 +91,7 @@ export const SettingsWebVitals: StoryFn = () => {
return <App />
}
SettingsOrganization.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

function TimeSensitiveSettings(props: {
Expand Down Expand Up @@ -133,40 +133,40 @@ export const SettingsSessionTimeoutAllOptions: StoryFn = () => {
return <TimeSensitiveSettings has_password saml_available />
}
SettingsSessionTimeoutAllOptions.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

export const SettingsSessionTimeoutPasswordOnly: StoryFn = () => {
return <TimeSensitiveSettings has_password />
}
SettingsSessionTimeoutPasswordOnly.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

export const SettingsSessionTimeoutSsoOnly: StoryFn = () => {
return <TimeSensitiveSettings />
}
SettingsSessionTimeoutSsoOnly.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

export const SettingsSessionTimeoutSsoEnforcedGithub: StoryFn = () => {
return <TimeSensitiveSettings sso_enforcement="github" />
}
SettingsSessionTimeoutSsoEnforcedGithub.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

export const SettingsSessionTimeoutSsoEnforcedGoogle: StoryFn = () => {
return <TimeSensitiveSettings sso_enforcement="google-oauth2" />
}
SettingsSessionTimeoutSsoEnforcedGoogle.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

export const SettingsSessionTimeoutSsoEnforcedSaml: StoryFn = () => {
return <TimeSensitiveSettings sso_enforcement="saml" />
}
SettingsSessionTimeoutSsoEnforcedSaml.parameters = {
testOptions: { waitForSelector: '.Settings__sections button' },
testOptions: { waitForSelector: '.Settings__sections a' },
}

0 comments on commit a7c7145

Please sign in to comment.