docs: edit and add example for Template Expression Operators section of Template Syntax (#28087)

PR Close #28087
This commit is contained in:
Kapunahele Wong
2019-01-08 15:58:23 -05:00
committed by Andrew Kushnir
parent f41242f18e
commit 6c4d91297e
11 changed files with 277 additions and 84 deletions

View File

@ -0,0 +1,31 @@
import { browser, element, by } from 'protractor';
import { logging } from 'selenium-webdriver';
describe('Template Expression Operators', function () {
beforeAll(function () {
browser.get('');
});
it('should have title Inputs and Outputs', function () {
let title = element.all(by.css('h1')).get(0);
expect(title.getText()).toEqual('Template Expression Operators');
});
it('should display json data', function () {
let jsonDate = element.all(by.css('p')).get(4);
expect(jsonDate.getText()).toContain('1980');
});
it('should display $98', function () {
let jsonDate = element.all(by.css('p')).get(5);
expect(jsonDate.getText()).toContain('$98.00');
});
it('should display Telephone', function () {
let jsonDate = element.all(by.css('p')).get(6);
expect(jsonDate.getText()).toContain('Telephone');
});
});