This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests) : Update UI tests to run on both Agile and SDD template pa…
…rallelly (#2747)
- Loading branch information
1 parent
8e7d61b
commit 51bacb6
Showing
16 changed files
with
474 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
import { browser } from 'protractor'; | ||
import { debug, info } from '../support'; | ||
|
||
export class Logging { | ||
name: string = ''; | ||
|
||
log(action: string, ...msg: string[]) { | ||
let className = this.constructor.name; | ||
info(`${action}: ${className}('${this.name}')`, ...msg); | ||
info(`${action}: ${browser.browserName} ${className}('${this.name}')`, ...msg); | ||
} | ||
|
||
debug(context: string, ...msg: string[]) { | ||
let className = this.constructor.name; | ||
debug(`... ${className}('${this.name}'): ${context}`, ...msg); | ||
debug(`${browser.browserName} ${className}('${this.name}'): ${context}`, ...msg); | ||
} | ||
|
||
fail(action: string, ...msg: string[]) { | ||
let className = this.constructor.name; | ||
/* to display errors in red */ | ||
console.error('\x1b[31m%s', `${action}: ${browser.browserName} ${className}('${this.name}')`, ...msg, '\x1b[0m'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.