All the docs related files (docs-app, doc-gen, content, etc) are now to be found inside the `/aio` folder. The related gulp tasks have been moved from the top level gulp file to a new one inside the `/aio` folder. The structure of the `/aio` folder now looks like: ``` /aio/ build/ # gulp tasks content/ #MARKDOWN FILES for devguides, cheatsheet, etc devguides/ cheatsheets/ transforms/ #dgeni packages, templates, etc src/ app/ assets/ content/ #HTML + JSON build artifacts produced by dgeni from /aio/content. #This dir is .gitignored-ed e2e/ #protractor tests for the doc viewer app node_modules/ #dependencies for both the doc viewer builds and the dgeni stuff #This dir is .gitignored-ed gulpfile.js #Tasks for generating docs and building & deploying the doc viewer ``` Closes #14361
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
'use strict'; // necessary for es6 output in node
|
|
|
|
import { browser, element, by, ElementFinder } from 'protractor';
|
|
|
|
describe('Cookbook: component-relative paths', function () {
|
|
|
|
interface Page {
|
|
title: ElementFinder;
|
|
absComp: ElementFinder;
|
|
relComp: ElementFinder;
|
|
|
|
}
|
|
function getPageStruct() {
|
|
return {
|
|
title: element( by.tagName( 'h1' )),
|
|
absComp: element( by.css( 'absolute-path div' ) ),
|
|
relComp: element( by.css( 'relative-path div' ) )
|
|
};
|
|
}
|
|
|
|
let page: Page;
|
|
beforeAll(function () {
|
|
browser.get('');
|
|
page = getPageStruct();
|
|
});
|
|
|
|
it('should display title of the sample', function () {
|
|
expect(element(by.tagName('h1')).getText()).toContain('Paths');
|
|
});
|
|
|
|
it('should have absolute-path element', function () {
|
|
expect(page.absComp.isPresent()).toBe(true, 'no <absolute-path> element');
|
|
});
|
|
|
|
it('should display the absolute path text', function () {
|
|
expect(page.absComp.getText()).toContain('Absolute');
|
|
});
|
|
|
|
it('should display the component-relative path text', function () {
|
|
expect(page.relComp.getText()).toContain('Component-relative');
|
|
});
|
|
});
|