Skip to content

Commit

Permalink
fix: better debugging message order
Browse files Browse the repository at this point in the history
  • Loading branch information
forsti0506 committed Aug 26, 2021
1 parent 41bbf0c commit 654ca7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils/make-sreenshots-with-errors-borderd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export async function makeScreenshotsWithErrorsBorderd(
for (const result of resultByUrl.violations) {
for (const node of result.nodes) {
if (!savedScreenshotHtmls.includes(node.html)) {
debug(config.debugMode, '(Count:' + currentMapObject.count + ')Adding border to: ' + JSON.stringify(node.target[0]));
const isVisible = await page.evaluate(
async (elementSelector, debugMode) => {
const dom: Element = document.querySelector(elementSelector);
Expand Down Expand Up @@ -98,6 +97,8 @@ export async function makeScreenshotsWithErrorsBorderd(
window.scrollBy(0, -adjustScrollingBehindFixed);
}

window.debug(config.debugMode, '(Count:' + currentMapObject.count + ')Adding border to: ' + JSON.stringify(node.target[0]));

if (dom.tagName === 'A') {
dom.setAttribute(
'style',
Expand Down

0 comments on commit 654ca7f

Please sign in to comment.