Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106-2024-07
frontend
Commits
5935dd14
Commit
5935dd14
authored
11 months ago
by
VIktorGrev
Browse files
Options
Downloads
Patches
Plain Diff
fix: Fixing newscomponent
parent
dfb74388
No related branches found
Branches containing commit
No related tags found
1 merge request
!44
Fix/pipeline
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/SignUp/__tests__/SignUpForm.spec.ts
+7
-5
7 additions, 5 deletions
src/components/SignUp/__tests__/SignUpForm.spec.ts
with
7 additions
and
5 deletions
src/components/SignUp/__tests__/SignUpForm.spec.ts
+
7
−
5
View file @
5935dd14
...
...
@@ -68,13 +68,14 @@ describe('Menu and Router Tests', () => {
describe
(
'
Input fields
'
,
()
=>
{
it
(
'
updates user credetials correctly
'
,
async
()
=>
{
it
(
'
updates user crede
n
tials correctly
'
,
async
()
=>
{
const
{
getByPlaceholderText
}
=
render
(
MyComponent
);
const
firstInput
=
getByPlaceholderText
(
'
Enter your first name
'
);
const
lastInput
=
getByPlaceholderText
(
'
Enter your surname
'
);
const
emailInput
=
getByPlaceholderText
(
'
Enter your email
'
);
const
passwordInput
=
getByPlaceholderText
(
'
Enter password
'
);
const
firstInput
=
getByPlaceholderText
(
'
Enter your first name
'
)
as
HTMLInputElement
;
const
lastInput
=
getByPlaceholderText
(
'
Enter your surname
'
)
as
HTMLInputElement
;
const
emailInput
=
getByPlaceholderText
(
'
Enter your email
'
)
as
HTMLInputElement
;
const
passwordInput
=
getByPlaceholderText
(
'
Enter password
'
)
as
HTMLInputElement
;
await
fireEvent
.
update
(
firstInput
,
'
Alice
'
);
await
fireEvent
.
update
(
lastInput
,
'
Alicon
'
);
await
fireEvent
.
update
(
emailInput
,
'
user@example.com
'
);
...
...
@@ -86,6 +87,7 @@ describe('Menu and Router Tests', () => {
expect
(
passwordInput
.
value
).
toBe
(
'
Password1
'
);
});
it
(
'
Password error msg
'
,
async
()
=>
{
const
{
container
}
=
render
(
MyComponent
,
{
global
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment