Skip to content

Commit 4280a5d

Browse files
committed
Build
1 parent bad65f2 commit 4280a5d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

e2e/app.e2e-spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ describe('Angular4-Fusioncharts Sample App', () => {
88

99
it(`should display wrapper title 'Angular4-FusionCharts Wrapper'`, () => {
1010
page.navigateTo();
11-
expect(page.getParagraphText()).toEqual('Angular4-FusionCharts Wrapper');
11+
expect(page.getSampleChartHeading()).toEqual('Angular4-FusionCharts Wrapper');
1212
});
1313

1414
it(`should display a sample chart using Angular4-FusionCharts wrapper`, () => {
1515
page.navigateTo();
16-
console.log(page.getChartElement());
17-
expect(page.getChartElement()).toEqual('fusioncharts');
16+
expect(page.getChartElement().getTagName()).toEqual('fusioncharts');
1817
});
1918
});

e2e/app.po.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ export class AppPage {
55
return browser.get('/');
66
}
77

8-
getParagraphText() {
8+
getSampleChartHeading() {
99
return element(by.css('app-root h1')).getText();
1010
}
1111

1212
getChartElement() {
13-
return element(by.css('app-root fusioncharts')).getTagName();
13+
return element(by.css('app-root fusioncharts'));
1414
}
1515
}

0 commit comments

Comments
 (0)