2019-01-14 13:56:28 -05:00
|
|
|
import { browser, element, by } from 'protractor';
|
|
|
|
|
2020-07-30 13:03:13 +03:00
|
|
|
describe('Built Template Functions Example', () => {
|
2020-11-23 20:17:10 +02:00
|
|
|
beforeAll(() => browser.get(''));
|
2019-01-14 13:56:28 -05:00
|
|
|
|
2020-11-23 20:17:10 +02:00
|
|
|
it('should have title Built-in Template Functions', async () => {
|
2020-07-30 13:03:19 +03:00
|
|
|
const title = element.all(by.css('h1')).get(0);
|
2020-11-23 20:17:10 +02:00
|
|
|
expect(await title.getText()).toEqual('Built-in Template Functions');
|
2019-01-14 13:56:28 -05:00
|
|
|
});
|
|
|
|
|
2020-11-23 20:17:10 +02:00
|
|
|
it('should display $any( ) in h2', async () => {
|
2020-07-30 13:03:19 +03:00
|
|
|
const header = element(by.css('h2'));
|
2020-11-23 20:17:10 +02:00
|
|
|
expect(await header.getText()).toContain('$any( )');
|
2019-01-14 13:56:28 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|