Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { AppPage } from "./app.po";
import { browser, logging } from "protractor";
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';

describe("workspace-project App", () => {
describe('workspace-project App', () => {
let page: AppPage;

beforeEach(() => {
page = new AppPage();
});

it("should display welcome message", () => {
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual("Welcome to carbon-angular-tutorial!");
expect(page.getTitleText()).toEqual('Welcome to carbon-angular-tutorial!');
});

afterEach(async () => {
Expand Down
4 changes: 2 additions & 2 deletions e2e/src/app.po.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { browser, by, element } from "protractor";
import { browser, by, element } from 'protractor';

export class AppPage {
navigateTo() {
return browser.get(browser.baseUrl) as Promise<any>;
}

getTitleText() {
return element(by.css("app-root h1")).getText() as Promise<string>;
return element(by.css('app-root h1')).getText() as Promise<string>;
}
}
Loading