Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
frazarshad committed Mar 6, 2024
1 parent d49d84e commit a405cc6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions commands/playwright-keplr.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const log = require('debug')('synpress:playwright');
const fetch = require('node-fetch');
const _ = require('underscore');
const sleep = require('util').promisify(setTimeout);
const { expect } = require('@playwright/test');

let browser;
let mainWindow;
Expand Down Expand Up @@ -237,6 +238,7 @@ module.exports = {
page,
args.number || 0,
);

if (args.numberOfClicks && !args.waitForEvent) {
await element.click({
clickCount: args.numberOfClicks,
Expand All @@ -259,7 +261,12 @@ module.exports = {
element.click({ force: args.force }),
]);
}
} else if (args.waitForVisibility) {
await expect(element).toBeInViewport();
await element.click({ force: args.force });
} else {
await expect(element).toBeInViewport();

await element.click({ force: args.force });
}
await module.exports.waitUntilStable();
Expand Down

0 comments on commit a405cc6

Please sign in to comment.