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
f5ed4e44
Commit
f5ed4e44
authored
10 months ago
by
VIktorGrev
Browse files
Options
Downloads
Plain Diff
fix: Fixing test
parents
6283f129
298ddbef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!70
Test/e2e
Pipeline
#282044
passed with warnings
10 months ago
Stage: install
Stage: build
Stage: test
Stage: lint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cypress/e2e/NotFoundView.cy.ts
+17
-0
17 additions, 0 deletions
cypress/e2e/NotFoundView.cy.ts
src/views/NotFoundView.vue
+1
-1
1 addition, 1 deletion
src/views/NotFoundView.vue
with
18 additions
and
1 deletion
cypress/e2e/NotFoundView.cy.ts
0 → 100644
+
17
−
0
View file @
f5ed4e44
describe
(
'
NotFound Test
'
,
()
=>
{
beforeEach
(()
=>
{
cy
.
visit
(
'
/login
'
);
cy
.
get
(
'
#emailInput input
'
).
type
(
'
user@example.com
'
);
cy
.
get
(
'
#passwordInput input
'
).
type
(
'
John1
'
);
cy
.
get
(
'
form
'
).
submit
();
cy
.
wait
(
1000
);
cy
.
visit
(
'
/
'
)
})
it
(
'
redirects user when page is not found, then go home
'
,
()
=>
{
cy
.
visit
(
'
/non-existent-page
'
)
cy
.
get
(
'
[data-cy="404-error"]
'
).
should
(
'
exist
'
)
cy
.
get
(
'
[data-cy="to-home"]
'
).
click
()
cy
.
url
().
should
(
'
include
'
,
'
/
'
)
})
})
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/views/NotFoundView.vue
+
1
−
1
View file @
f5ed4e44
...
...
@@ -11,7 +11,7 @@
Beklager, det har oppstått en feil. Forespurt side ikke funnet!
</div>
<div
class=
"error-actions"
>
<Button1
button-text=
"Ta
meg hjem
"
@
click=
"home"
/>
<Button1
button-text=
"Ta
ke Me Home
"
@
click=
"home"
/>
</div>
</div>
</div>
...
...
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