Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dspace7 Angular
Manage
Activity
Members
Labels
Plan
Issues
42
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Monday, March 24th
Show more breadcrumbs
vtechworks
Dspace7 Angular
Commits
26c2eae1
Commit
26c2eae1
authored
8 years ago
by
Lotte Hofstede
Browse files
Options
Downloads
Patches
Plain Diff
38248: updated pagenotfound tests
parent
494e2c73
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
e2e/pagenotfound/pagenotfound.e2e-spec.ts
+4
-4
4 additions, 4 deletions
e2e/pagenotfound/pagenotfound.e2e-spec.ts
e2e/pagenotfound/pagenotfound.po.ts
+2
-2
2 additions, 2 deletions
e2e/pagenotfound/pagenotfound.po.ts
with
6 additions
and
6 deletions
e2e/pagenotfound/pagenotfound.e2e-spec.ts
+
4
−
4
View file @
26c2eae1
...
@@ -8,12 +8,12 @@ describe('protractor PageNotFound', function() {
...
@@ -8,12 +8,12 @@ describe('protractor PageNotFound', function() {
});
});
it
(
'
should contain element ds-pagenotfound when navigating to page that doesnt exist"
'
,
()
=>
{
it
(
'
should contain element ds-pagenotfound when navigating to page that doesnt exist"
'
,
()
=>
{
page
.
navigateTo
Random
Page
();
page
.
navigateTo
NonExisting
Page
();
expect
(
page
.
elementTagExists
(
"
ds-pagenotfound
"
)).
toEqual
(
true
);
expect
(
page
.
elementTagExists
(
"
ds-pagenotfound
"
)).
toEqual
(
true
);
});
});
it
(
'
should contain element ds-
home
when navigating to
/hom
e"
'
,
()
=>
{
it
(
'
should
not
contain element ds-
pagenotfound
when navigating to
existing pag
e"
'
,
()
=>
{
page
.
navigateTo
Home
Page
();
page
.
navigateTo
Existing
Page
();
expect
(
page
.
elementTagExists
(
"
ds-
home
"
)).
toEqual
(
tru
e
);
expect
(
page
.
elementTagExists
(
"
ds-
pagenotfound
"
)).
toEqual
(
fals
e
);
});
});
});
});
This diff is collapsed.
Click to expand it.
e2e/pagenotfound/pagenotfound.po.ts
+
2
−
2
View file @
26c2eae1
...
@@ -4,10 +4,10 @@ export class ProtractorPage {
...
@@ -4,10 +4,10 @@ export class ProtractorPage {
HOMEPAGE
:
string
=
"
/home
"
;
HOMEPAGE
:
string
=
"
/home
"
;
NONEXISTINGPAGE
:
string
=
"
/e9019a69-d4f1-4773-b6a3-bd362caa46f2
"
;
NONEXISTINGPAGE
:
string
=
"
/e9019a69-d4f1-4773-b6a3-bd362caa46f2
"
;
navigateTo
Random
Page
()
{
navigateTo
NonExisting
Page
()
{
return
browser
.
get
(
this
.
NONEXISTINGPAGE
);
return
browser
.
get
(
this
.
NONEXISTINGPAGE
);
}
}
navigateTo
Home
Page
()
{
navigateTo
Existing
Page
()
{
return
browser
.
get
(
this
.
HOMEPAGE
);
return
browser
.
get
(
this
.
HOMEPAGE
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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