Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sparesti-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_01
sparesti-frontend
Merge requests
!134
Test saving path view
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Test saving path view
test-saving-path-view
into
development
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Agnethe Kval-Engstad
requested to merge
test-saving-path-view
into
development
1 year ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
c1cfd53b
2 commits,
1 year ago
1 file
+
26
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
cypress/e2e/SavingPathView.cy.js
0 → 100644
+
26
−
0
Options
describe
(
'
SavingPathView tests
'
,
()
=>
{
beforeEach
(()
=>
{
window
.
localStorage
.
setItem
(
'
access_token
'
,
'
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIzIiwiaXNzIjoiZnN0X3Rva2VuX2lzc3Vlcl9hc
'
+
'
HAiLCJleHAiOjE3MjIyMzk3MTQsImlhdCI6MTcxNDQ2MzcxNH0.AjYqAXgFKnhzeOBOTICVciiKpvOGDGyfQq0--
'
+
'
YuA0GlLSsplrETK1AbaQTYWnMPBJPF2MGWsbRESN1g-DTEeKg
'
);
cy
.
visit
(
'
http://localhost:5173/saving-path
'
);
});
it
(
'
renders without crashing
'
,
()
=>
{
cy
.
get
(
'
body
'
).
should
(
'
be.visible
'
)
})
it
(
'
renders title
'
,
()
=>
{
cy
.
get
(
'
h1
'
).
should
(
'
be.visible
'
)
})
it
(
'
renders dropdown for time sort
'
,
()
=>
{
cy
.
get
(
'
[aria-controls="radix-vue-select-content-1"]
'
).
should
(
'
be.visible
'
)
})
it
(
'
renders dropdown for difficulty
'
,
()
=>
{
cy
.
get
(
'
[aria-controls="radix-vue-select-content-2"]
'
).
should
(
'
be.visible
'
)
})
})
\ No newline at end of file
Loading