mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-18 17:55:52 +08:00
chore: placeholder is updated for the signup page (#1035)
* chore: placeholder is updated for the signup page
This commit is contained in:
parent
63693a4185
commit
284eda4072
@ -1,5 +1,6 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
||||||
const Login = ({ email, name }: LoginProps): void => {
|
const Login = ({ email, name }: LoginProps): void => {
|
||||||
const emailInput = cy.findByPlaceholderText('mike@netflix.com');
|
const emailInput = cy.findByPlaceholderText('name@yourcompany.com');
|
||||||
|
|
||||||
emailInput.then((emailInput) => {
|
emailInput.then((emailInput) => {
|
||||||
const element = emailInput[0];
|
const element = emailInput[0];
|
||||||
@ -13,7 +14,7 @@ const Login = ({ email, name }: LoginProps): void => {
|
|||||||
expect(inputValue).to.be.equals(email);
|
expect(inputValue).to.be.equals(email);
|
||||||
});
|
});
|
||||||
|
|
||||||
const firstNameInput = cy.findByPlaceholderText('Mike');
|
const firstNameInput = cy.findByPlaceholderText('Your Name');
|
||||||
firstNameInput.then((firstNameInput) => {
|
firstNameInput.then((firstNameInput) => {
|
||||||
const element = firstNameInput[0];
|
const element = firstNameInput[0];
|
||||||
// element is present
|
// element is present
|
||||||
|
@ -61,7 +61,7 @@ function Login(): JSX.Element {
|
|||||||
<ParentContainer>
|
<ParentContainer>
|
||||||
<Label htmlFor="signupEmail">Email</Label>
|
<Label htmlFor="signupEmail">Email</Label>
|
||||||
<Input
|
<Input
|
||||||
placeholder="mike@netflix.com"
|
placeholder="name@yourcompany.com"
|
||||||
type="email"
|
type="email"
|
||||||
autoFocus
|
autoFocus
|
||||||
required
|
required
|
||||||
|
@ -72,7 +72,7 @@ function UpdateName(): JSX.Element {
|
|||||||
<Space direction="vertical" size="middle">
|
<Space direction="vertical" size="middle">
|
||||||
<Typography>Name</Typography>
|
<Typography>Name</Typography>
|
||||||
<NameInput
|
<NameInput
|
||||||
placeholder="Mike Tyson"
|
placeholder="Your Name"
|
||||||
onChange={(event): void => {
|
onChange={(event): void => {
|
||||||
setChangedName(event.target.value);
|
setChangedName(event.target.value);
|
||||||
}}
|
}}
|
||||||
|
@ -186,7 +186,7 @@ function SignUp({ version }: SignUpProps): JSX.Element {
|
|||||||
<div>
|
<div>
|
||||||
<Label htmlFor="signupEmail">Email</Label>
|
<Label htmlFor="signupEmail">Email</Label>
|
||||||
<Input
|
<Input
|
||||||
placeholder="mike@netflix.com"
|
placeholder="name@yourcompany.com"
|
||||||
type="email"
|
type="email"
|
||||||
autoFocus
|
autoFocus
|
||||||
value={email}
|
value={email}
|
||||||
@ -199,6 +199,7 @@ function SignUp({ version }: SignUpProps): JSX.Element {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{isNameVisible && (
|
{isNameVisible && (
|
||||||
<div>
|
<div>
|
||||||
<Label htmlFor="signupFirstName">First Name</Label>
|
<Label htmlFor="signupFirstName">First Name</Label>
|
||||||
@ -215,10 +216,11 @@ function SignUp({ version }: SignUpProps): JSX.Element {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<Label htmlFor="organizationName">Organization Name</Label>
|
<Label htmlFor="organizationName">Organization Name</Label>
|
||||||
<Input
|
<Input
|
||||||
placeholder="Netflix"
|
placeholder="Your Company"
|
||||||
value={organizationName}
|
value={organizationName}
|
||||||
onChange={(e): void => {
|
onChange={(e): void => {
|
||||||
setState(e.target.value, setOrganizationName);
|
setState(e.target.value, setOrganizationName);
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
"./.eslintrc.js",
|
"./.eslintrc.js",
|
||||||
"./__mocks__",
|
"./__mocks__",
|
||||||
"./conf/default.conf",
|
"./conf/default.conf",
|
||||||
"./public"
|
"./public",
|
||||||
|
"./cypress"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user