-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
test(ui): Mock the onboarding learn more video #14108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,21 +6,26 @@ import CreateSampleEventButton from 'app/views/onboarding/createSampleEventButto | |
import Panel from 'app/components/panels/panel'; | ||
import PanelBody from 'app/components/panels/panelBody'; | ||
import SentryTypes from 'app/sentryTypes'; | ||
import getDynamicText from 'app/utils/getDynamicText'; | ||
import space from 'app/styles/space'; | ||
|
||
const LEARN_MORE_VIDEO = 'https://player.vimeo.com/video/319554213'; | ||
|
||
const learnMoveVideo = getDynamicText({ | ||
fixed: null, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would put placeholder text here so that people looking at the snapshots know there's a placeholder (instead of it looking like the video is just missing) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will open a separate PR to do |
||
value: ( | ||
<iframe | ||
src={LEARN_MORE_VIDEO} | ||
frameBorder="0" | ||
allow="autoplay; fullscreen" | ||
allowFullScreen | ||
/> | ||
), | ||
}); | ||
|
||
const LearnMore = ({project}) => ( | ||
<React.Fragment> | ||
<DemoVideo> | ||
<iframe | ||
src={LEARN_MORE_VIDEO} | ||
frameBorder="0" | ||
allow="autoplay; fullscreen" | ||
allowFullScreen | ||
/> | ||
</DemoVideo> | ||
|
||
<DemoVideo>{learnMoveVideo}</DemoVideo> | ||
<Panel> | ||
<SampleEventPanelBody disablePadding={false}> | ||
{tct( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not great that this function is called
getDynamicText