Commits
Lotte Hofstede authored 0875f76962c
1 - | import { ProtractorPage } from './simple-item-page.po'; |
2 - | |
3 - | describe('protractor Simple Item Page', function () { |
4 - | let page: ProtractorPage; |
5 - | |
6 - | beforeEach(() => { |
7 - | page = new ProtractorPage(); |
8 - | page.navigateToSimpleItemPage(); |
9 - | }); |
10 - | |
11 - | it('should contain element ds-thumbnail"', () => { |
12 - | expect(page.elementSelectorExists("ds-thumbnail img")).toEqual(true); |
13 - | }); |
14 - | |
15 - | it('should contain element an h2 title field"', () => { |
16 - | expect(page.elementSelectorExists("h2.item-page-title-field")).toEqual(true); |
17 - | }); |
18 - | |
19 - | it('should contain element link to its collections"', () => { |
20 - | expect(page.elementTagExists("ds-item-page-collections")).toEqual(true); |
21 - | }); |
22 - | |
23 - | it('should contain a file section"', () => { |
24 - | expect(page.elementTagExists("ds-item-page-file-section")).toEqual(true); |
25 - | }); |
26 - | |
27 - | }); |