docs: edit $any() section and add example in Template Syntax (#28157)

PR Close #28157
This commit is contained in:
Kapunahele Wong
2019-01-14 13:56:28 -05:00
committed by Matias Niemelä
parent a9020a028f
commit c0ad9e104d
12 changed files with 135 additions and 26 deletions

View File

@ -0,0 +1,20 @@
'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor';
describe('Built Template Functions Example', function () {
beforeAll(function () {
browser.get('');
});
it('should have title Built-in Template Functions', function () {
let title = element.all(by.css('h1')).get(0);
expect(title.getText()).toEqual('Built-in Template Functions');
});
it('should display $any( ) in h2', function () {
let header = element(by.css('h2'));
expect(header.getText()).toContain('$any( )');
});
});