Add basic tests to containers/soapbox
This commit is contained in:
parent
b6c7e3717b
commit
6b19adbb26
5 changed files with 5 additions and 5 deletions
BIN
app/soapbox/containers/__tests__/soapbox.test.js
Normal file
BIN
app/soapbox/containers/__tests__/soapbox.test.js
Normal file
Binary file not shown.
|
@ -123,7 +123,7 @@ const SoapboxMount = () => {
|
|||
return (
|
||||
<IntlProvider locale={locale} messages={messages}>
|
||||
<Helmet>
|
||||
<html lang='en' className={classNames({ dark: settings.get('themeMode') === 'dark' })} />
|
||||
<html lang={locale} className={classNames({ dark: settings.get('themeMode') === 'dark' })} />
|
||||
<body className={bodyClass} />
|
||||
{themeCss && <style id='theme' type='text/css'>{`:root{${themeCss}}`}</style>}
|
||||
<meta name='theme-color' content={soapboxConfig.brandColor} />
|
||||
|
@ -142,7 +142,7 @@ const SoapboxMount = () => {
|
|||
return (
|
||||
<IntlProvider locale={locale} messages={messages}>
|
||||
<Helmet>
|
||||
<html lang='en' className={classNames({ dark: settings.get('themeMode') === 'dark' })} />
|
||||
<html lang={locale} className={classNames({ dark: settings.get('themeMode') === 'dark' })} />
|
||||
<body className={bodyClass} />
|
||||
{themeCss && <style id='theme' type='text/css'>{`:root{${themeCss}}`}</style>}
|
||||
<meta name='theme-color' content={soapboxConfig.brandColor} />
|
||||
|
|
|
@ -43,7 +43,7 @@ const ExternalLoginForm: React.FC = () => {
|
|||
}
|
||||
|
||||
return (
|
||||
<Form onSubmit={handleSubmit}>
|
||||
<Form onSubmit={handleSubmit} data-testid='external-login'>
|
||||
<FormGroup labelText={intl.formatMessage(messages.instanceLabel)}>
|
||||
<Input
|
||||
aria-label={intl.formatMessage(messages.instancePlaceholder)}
|
||||
|
|
|
@ -66,7 +66,7 @@ const LandingPage = () => {
|
|||
};
|
||||
|
||||
return (
|
||||
<main className='mt-16 sm:mt-24'>
|
||||
<main className='mt-16 sm:mt-24' data-testid='homepage'>
|
||||
<div className='mx-auto max-w-7xl'>
|
||||
<div className='lg:grid lg:grid-cols-12 lg:gap-8 py-12'>
|
||||
<div className='px-4 sm:px-6 sm:text-center md:max-w-2xl md:mx-auto lg:col-span-6 lg:text-left lg:flex'>
|
||||
|
|
|
@ -67,7 +67,7 @@ const OnboardingWizard = () => {
|
|||
}, []);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div data-testid='onboarding-wizard'>
|
||||
<div className='fixed h-screen w-full bg-gradient-to-tr from-primary-50 via-white to-cyan-50' />
|
||||
|
||||
<main className='h-screen flex flex-col'>
|
||||
|
|
Loading…
Reference in a new issue