Tests that console is cleared via console.clear() method
Running: clearFromConsoleAPI
=== Before clear ===
console-clear-function.js:18 one
console-clear-function.js:19 two
console-clear-function.js:20 three
=== After clear ===
Console was cleared
Running: shouldNotClearWithPreserveLog
=== Before clear ===
Console was cleared
console-clear-function.js:18 one
console-clear-function.js:19 two
console-clear-function.js:20 three
=== After clear ===
Console was cleared
console-clear-function.js:18 one
console-clear-function.js:19 two
console-clear-function.js:20 three
console.clear() was prevented due to 'Preserve log'