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 Wednesday, March 26th
Show more breadcrumbs
vtechworks
Dspace7 Angular
Commits
dc7e784b
Commit
dc7e784b
authored
6 years ago
by
Kristof De Langhe
Committed by
Bram Luyten
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
56434: e2e test fix
parent
47f6c244
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/app.e2e-spec.ts
+2
-2
2 additions, 2 deletions
e2e/app.e2e-spec.ts
e2e/app.po.ts
+2
-6
2 additions, 6 deletions
e2e/app.po.ts
with
4 additions
and
8 deletions
e2e/app.e2e-spec.ts
+
2
−
2
View file @
dc7e784b
...
...
@@ -12,8 +12,8 @@ describe('protractor App', () => {
expect
<
any
>
(
page
.
getPageTitleText
()).
toEqual
(
'
DSpace Angular :: Home
'
);
});
it
(
'
should
display header "Welcome to DSpace"
'
,
()
=>
{
it
(
'
should
contain a news section
'
,
()
=>
{
page
.
navigateTo
();
expect
<
any
>
(
page
.
get
FirstHeaderText
()).
toEqual
(
'
Welcome to DSpace
'
);
expect
<
any
>
(
page
.
get
HomePageNewsText
()).
toBeDefined
(
);
});
});
This diff is collapsed.
Click to expand it.
e2e/app.po.ts
+
2
−
6
View file @
dc7e784b
...
...
@@ -9,11 +9,7 @@ export class ProtractorPage {
return
browser
.
getTitle
();
}
getFirstPText
()
{
return
element
(
by
.
xpath
(
'
//p[1]
'
)).
getText
();
}
getFirstHeaderText
()
{
return
element
(
by
.
xpath
(
'
//h1[1]
'
)).
getText
();
getHomePageNewsText
()
{
return
element
(
by
.
xpath
(
'
//ds-home-news
'
)).
getText
();
}
}
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