Commits

Lotte Hofstede authored b262e066cf5
40416: more tests and docs
No tags

e2e/simple-item-page/simple-item-page.e2e-spec.ts

Modified
1 1 import { ProtractorPage } from './simple-item-page.po';
2 2
3 -describe('protractor Simple Item Page', function() {
3 +describe('protractor Simple Item Page', function () {
4 4 let page: ProtractorPage;
5 5
6 6 beforeEach(() => {
7 7 page = new ProtractorPage();
8 8 page.navigateToSimpleItemPage();
9 9 });
10 10
11 11 it('should contain element ds-thumbnail"', () => {
12 - expect(page.elementTagExists("ds-thumbnail")).toEqual(true);
12 + expect(page.elementSelectorExists("ds-thumbnail img")).toEqual(true);
13 13 });
14 14
15 - it('should contain element h1.item-page-title-field"', () => {
16 - expect(page.elementSelectorExists("h1.selector")).toEqual(true);
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);
17 25 });
18 26
19 27 });

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut