2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 15:08:49 -04:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2016-06-23 12:47:54 -04:00
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-11-10 21:13:11 -05:00
|
|
|
import {browser, by, element} from 'protractor';
|
2015-12-06 07:21:34 -05:00
|
|
|
|
2020-04-24 16:14:28 -04:00
|
|
|
import {verifyNoBrowserErrors} from '../../../../dev-infra/benchmark/driver-utilities';
|
2019-02-01 08:46:38 -05:00
|
|
|
|
2015-12-06 07:21:34 -05:00
|
|
|
describe('SVG', function() {
|
2019-02-01 08:46:38 -05:00
|
|
|
const URL = '/';
|
2015-12-06 07:21:34 -05:00
|
|
|
|
|
|
|
afterEach(verifyNoBrowserErrors);
|
2020-04-13 19:40:21 -04:00
|
|
|
beforeEach(() => {
|
|
|
|
browser.get(URL);
|
|
|
|
});
|
2015-12-06 07:21:34 -05:00
|
|
|
|
|
|
|
it('should display SVG component contents', function() {
|
2016-11-12 08:08:58 -05:00
|
|
|
const svgText = element.all(by.css('g text')).get(0);
|
2015-12-06 07:21:34 -05:00
|
|
|
expect(svgText.getText()).toEqual('Hello');
|
|
|
|
});
|
|
|
|
});
|