chore: placeholder is updated for the signup page (#1035)

* chore: placeholder is updated for the signup page
This commit is contained in:
palash-signoz 2022-05-03 21:20:36 +05:30 committed by GitHub
parent 63693a4185
commit 284eda4072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-expressions */
const Login = ({ email, name }: LoginProps): void => {
const emailInput = cy.findByPlaceholderText('mike@netflix.com');
const emailInput = cy.findByPlaceholderText('name@yourcompany.com');
emailInput.then((emailInput) => {
const element = emailInput[0];
@ -13,7 +14,7 @@ const Login = ({ email, name }: LoginProps): void => {
expect(inputValue).to.be.equals(email);
});
const firstNameInput = cy.findByPlaceholderText('Mike');
const firstNameInput = cy.findByPlaceholderText('Your Name');
firstNameInput.then((firstNameInput) => {
const element = firstNameInput[0];
// element is present

View File

@ -61,7 +61,7 @@ function Login(): JSX.Element {
<ParentContainer>
<Label htmlFor="signupEmail">Email</Label>
<Input
placeholder="mike@netflix.com"
placeholder="name@yourcompany.com"
type="email"
autoFocus
required

View File

@ -72,7 +72,7 @@ function UpdateName(): JSX.Element {
<Space direction="vertical" size="middle">
<Typography>Name</Typography>
<NameInput
placeholder="Mike Tyson"
placeholder="Your Name"
onChange={(event): void => {
setChangedName(event.target.value);
}}

View File

@ -186,7 +186,7 @@ function SignUp({ version }: SignUpProps): JSX.Element {
<div>
<Label htmlFor="signupEmail">Email</Label>
<Input
placeholder="mike@netflix.com"
placeholder="name@yourcompany.com"
type="email"
autoFocus
value={email}
@ -199,6 +199,7 @@ function SignUp({ version }: SignUpProps): JSX.Element {
/>
</div>
{isNameVisible && (
<div>
<Label htmlFor="signupFirstName">First Name</Label>
@ -215,10 +216,11 @@ function SignUp({ version }: SignUpProps): JSX.Element {
</div>
)}
<div>
<Label htmlFor="organizationName">Organization Name</Label>
<Input
placeholder="Netflix"
placeholder="Your Company"
value={organizationName}
onChange={(e): void => {
setState(e.target.value, setOrganizationName);

View File

@ -29,6 +29,7 @@
"./.eslintrc.js",
"./__mocks__",
"./conf/default.conf",
"./public"
"./public",
"./cypress"
]
}