Add a range of data-testid tags to be able to cleanly identify parts of the application.

This commit is contained in:
Michael Kaye
2023-04-19 13:47:05 +01:00
parent 8d56a8e8fc
commit 323dba620d
6 changed files with 10 additions and 6 deletions

View File

@@ -142,6 +142,7 @@ export const UnauthenticatedView: FC = () => {
type="text"
required
autoComplete="off"
data-testid="home_callName"
/>
</FieldRow>
<FieldRow>
@@ -152,6 +153,7 @@ export const UnauthenticatedView: FC = () => {
placeholder={t("Display name")}
type="text"
required
data-testid="home_displayName"
autoComplete="off"
/>
</FieldRow>
@@ -171,7 +173,7 @@ export const UnauthenticatedView: FC = () => {
<ErrorMessage error={error} />
</FieldRow>
)}
<Button type="submit" size="lg" disabled={loading}>
<Button type="submit" size="lg" disabled={loading} data-testid="home_go">
{loading ? t("Loading…") : t("Go")}
</Button>
<div id={recaptchaId} />