Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend_fullstack
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
team_fullastack
frontend_fullstack
Merge requests
!14
Merge tests and read me file to master
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Merge tests and read me file to master
merge-branch
into
master
Overview
0
Commits
6
Pipelines
0
Changes
19
Merged
Gia Hy Nguyen
requested to merge
merge-branch
into
master
1 year ago
Overview
0
Commits
6
Pipelines
0
Changes
19
Expand
Merge tests and read me file to master
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
6609dddd
6 commits,
1 year ago
19 files
+
611
−
59
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
19
Search (e.g. *.vue) (Ctrl+P)
cypress/e2e/frontpage/login.cy.ts
0 → 100644
+
29
−
0
Options
describe
(
'
Login Form
'
,
()
=>
{
beforeEach
(()
=>
{
cy
.
visit
(
'
/
'
)
})
it
(
'
should log in with valid credentials
'
,
()
=>
{
// Enter valid username and password
cy
.
get
(
'
#username
'
).
type
(
'
test
'
)
cy
.
get
(
'
#password
'
).
type
(
'
password
'
)
// Click the login button
cy
.
get
(
'
#signinButton
'
).
click
()
// Ensure redirected to the homepage or appropriate route after successful login
cy
.
url
().
should
(
'
include
'
,
'
/homepage
'
)
})
it
(
'
should display error message with invalid password
'
,
()
=>
{
// Enter password
cy
.
get
(
'
#username
'
).
type
(
'
test
'
)
cy
.
get
(
'
#password
'
).
type
(
'
pass
'
)
// Click the login button
cy
.
get
(
'
#signinButton
'
).
click
()
// Check if error message is displayed
cy
.
get
(
'
#loginStatus
'
).
should
(
'
have.text
'
,
'
Login failed
'
)
})
})
\ No newline at end of file
Loading