Skip to content

Commit

Permalink
Merge pull request #322 from bram-atmire/issue-321-home-news-rewording
Browse files Browse the repository at this point in the history
issue 321 home news rewording
  • Loading branch information
artlowel committed Apr 18, 2019
2 parents 642c091 + 6a61cd0 commit 684b74e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.getFirstHeaderText()).toEqual('Welcome to DSpace');
expect<any>(page.getHomePageNewsText()).toBeDefined();
});
});
8 changes: 2 additions & 6 deletions e2e/app.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
11 changes: 6 additions & 5 deletions src/app/+home-page/home-news/home-news.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
<div class="d-flex flex-wrap">
<img class="mr-4 dspace-logo" src="assets/images/dspace-logo.svg" alt="" />
<div>
<h1 class="display-3">Welcome to DSpace</h1>
<p class="lead">DSpace is an open source software platform that enables organisations to:</p>
<h1 class="display-3">Welcome to the DSpace 7 Preview Release</h1>
<p class="lead">DSpace is the world leading open source repository platform that enables organisations to:</p>
</div>
</div>
<ul>
<li>capture and describe digital material using a submission workflow module, or a variety of programmatic ingest options
<li>easily ingest documents, audio, video, datasets and their corresponding Dublin Core metadata
</li>
<li>distribute an organisation's digital assets over the web through a search and retrieval system
<li>open up this content to local and global audiences, thanks to the OAI-PMH interface and Google Scholar optimizations
</li>
<li>preserve digital assets over the long term</li>
<li>issue permanent urls and trustworthy identifiers, including optional integrations with handle.net and DataCite DOI</li>
</ul>
<p>Join an international community of <A HREF="https://wiki.duraspace.org/display/DSPACE/DSpace+Positioning" TARGET="_NEW">leading institutions using DSpace</A>.</p>
</div>
</div>

0 comments on commit 684b74e

Please sign in to comment.