Created
August 19, 2019 07:22
-
-
Save santarinto/937aef541283d5bff8b4bf667518d820 to your computer and use it in GitHub Desktop.
Jetbrains PhpStorm clear codeception reports tool js
This file contains hidden or 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
function ReportTool () {} | |
ReportTool.prototype.removeAllSuccessParts = () => { | |
const sList = document.getElementById('status_list'); | |
Array.prototype.forEach.call(sList.childNodes, (c) => { | |
if (c.tagName !== 'LI') return; | |
if (!c.classList.contains('failed')) sList.removeChild(c); | |
}); | |
} | |
window.reportTool = new ReportTool(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment