fix(schematics): update nx app schematics to generate a passing e2e test
This commit is contained in:
parent
f2d9e6cff4
commit
03d16ef6ff
@ -9,6 +9,6 @@ describe('<%= utils.dasherize(name) %> App', () => {
|
||||
|
||||
it('should display welcome message', () => {
|
||||
page.navigateTo();
|
||||
expect(page.getParagraphText()).toEqual('Welcome to <%= prefix %>!');
|
||||
expect(page.text()).toContain('app works!');
|
||||
});
|
||||
});
|
||||
|
||||
@ -6,6 +6,6 @@ export class AppPage {
|
||||
}
|
||||
|
||||
getParagraphText() {
|
||||
return element(by.css('<%= prefix %>-root h1')).getText();
|
||||
return browser.findElement(by.css('body')).getText();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { <%= className %> } from './<%=fileName%>';
|
||||
|
||||
describe("<%= className %>", () => {
|
||||
it("should work", () => {
|
||||
describe('<%= className %>', () => {
|
||||
it('should work', () => {
|
||||
expect(new <%= className %>()).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user