Skip to content

Commit

Permalink
fix(surveys): use custom selectors for the stories (#24143)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
dmarticus and github-actions[bot] authored Aug 1, 2024
1 parent cbe331c commit 00bea7f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions frontend/src/scenes/surveys/Surveys.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,7 @@ export const NewSurveyWithHTMLQuestionDescription: StoryFn = () => {

NewSurveyWithHTMLQuestionDescription.parameters = {
testOptions: {
waitForSelector:
'#survey > div.flex.flex-row.gap-4 > div.max-w-80.mx-4.flex.flex-col.items-center.h-full.w-full.sticky.top-0.pt-16 > div > div:nth-child(1) > form > div > div:nth-child(2) > div:nth-child(1) > div.description > strong',
waitForSelector: '.survey-question-description strong',
},
}

Expand All @@ -386,8 +385,7 @@ export const NewSurveyWithTextQuestionDescriptionThatDoesNotRenderHTML: StoryFn

NewSurveyWithTextQuestionDescriptionThatDoesNotRenderHTML.parameters = {
testOptions: {
waitForSelector:
'#survey > div.flex.flex-row.gap-4 > div.max-w-80.mx-4.flex.flex-col.items-center.h-full.w-full.sticky.top-0.pt-16 > div > div:nth-child(1) > form > div > div:nth-child(2) > div:nth-child(1) > div.description',
waitForSelector: '.survey-question-description',
},
}

Expand Down

0 comments on commit 00bea7f

Please sign in to comment.