Skip to content

Commit

Permalink
test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao committed Jan 7, 2017
1 parent e553efa commit 53135ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion e2e/components/button/button.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('button', function () {

element(by.id('disable-toggle')).click();
element(by.id('test-button')).click();
expect(element(by.id('click-counter')).getText()).toEqual('1');
expect(element(by.id('click-counter')).getText()).toEqual('2');
screenshot('click disabled');
});
});
Expand Down
18 changes: 9 additions & 9 deletions e2e/screenshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const OUTPUT_DIR = '/tmp/angular-material2-build/screenshots/';

let currentJasmineSpecName = '';

function initializeEnvironment(jasmine: any) {
var reporter = new jasmine.JsApiReporter({});
reporter.specStarted = function(result: any) {
currentJasmineSpecName = result.fullName;
};
jasmine.getEnv().addReporter(reporter);
}

initializeEnvironment(jasmine);
// function initializeEnvironment(jasmine: any) {
// var reporter = new jasmine.JsApiReporter({});
// reporter.specStarted = function(result: any) {
// currentJasmineSpecName = result.fullName;
// };
// jasmine.getEnv().addReporter(reporter);
// }

// initializeEnvironment(jasmine);

export class Screenshot {
id: string;
Expand Down

0 comments on commit 53135ce

Please sign in to comment.