Merge pull request #322 from bram-atmire/issue-321-home-news-rewording

issue 321 home news rewording
This commit is contained in:
Art Lowel
2019-04-18 10:26:10 +02:00
committed by GitHub
3 changed files with 10 additions and 13 deletions

View File

@@ -12,8 +12,8 @@ describe('protractor App', () => {
expect<any>(page.getPageTitleText()).toEqual('DSpace Angular :: Home'); expect<any>(page.getPageTitleText()).toEqual('DSpace Angular :: Home');
}); });
it('should display header "Welcome to DSpace"', () => { it('should contain a news section', () => {
page.navigateTo(); page.navigateTo();
expect<any>(page.getFirstHeaderText()).toEqual('Welcome to DSpace'); expect<any>(page.getHomePageNewsText()).toBeDefined();
}); });
}); });

View File

@@ -9,11 +9,7 @@ export class ProtractorPage {
return browser.getTitle(); return browser.getTitle();
} }
getFirstPText() { getHomePageNewsText() {
return element(by.xpath('//p[1]')).getText(); return element(by.xpath('//ds-home-news')).getText();
}
getFirstHeaderText() {
return element(by.xpath('//h1[1]')).getText();
} }
} }

View File

@@ -3,16 +3,17 @@
<div class="d-flex flex-wrap"> <div class="d-flex flex-wrap">
<img class="mr-4 dspace-logo" src="assets/images/dspace-logo.svg" alt="" /> <img class="mr-4 dspace-logo" src="assets/images/dspace-logo.svg" alt="" />
<div> <div>
<h1 class="display-3">Welcome to DSpace</h1> <h1 class="display-3">Welcome to the DSpace 7 Preview Release</h1>
<p class="lead">DSpace is an open source software platform that enables organisations to:</p> <p class="lead">DSpace is the world leading open source repository platform that enables organisations to:</p>
</div> </div>
</div> </div>
<ul> <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>
<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>
<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> </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>
</div> </div>