Skip to content

Commit

Permalink
Fixing signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit3200 committed Sep 30, 2024
1 parent 95aadb3 commit 15680aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function changeWindowDimensionAndWait(driver, width, height, resizeCount)
}

// Captures responsive DOM snapshots across different widths
async function captureResponsiveDOM(driver, options = {}, cookies = {}) {
async function captureResponsiveDOM(driver, options = {}) {
const widths = getWidthsForMultiDOM(options.widths || [], utils.percy?.widths);
const domSnapshots = [];
const windowSize = await driver.manage().window().getRect();
Expand Down Expand Up @@ -112,7 +112,7 @@ async function captureSerializedDOM(driver, options) {
return domSnapshot;
}

async function captureDOM(driver, options) {
async function captureDOM(driver, options = {}) {
const responsiveSnapshotCapture = options?.responsive_snapshot_capture || options?.responsiveSnapshotCapture || false;
if (responsiveSnapshotCapture) {
return await captureResponsiveDOM(driver, options);
Expand Down

0 comments on commit 15680aa

Please sign in to comment.