Enhance function comments

This commit is contained in:
Carlos Alcaide Corvo committed 2021-10-18 11:08:19 -07:00
1 parent 9e6b051353
commit 50ef25fda1
1 file changed
+4 -5
+4 -5
View File
@@ -44,12 +44,11 @@ exports.returnExecutablePath = (platform, arch) => {
};
/**
*
* @param {*} appWindow
* @param {*} selector
* Performs a click with a workarouind due to an error with plain playwright click.
* More info about the issue here: https://github.com/microsoft/playwright/issues/1808
* @param {*} appWindow The current electron window.
* @param {*} selector The DOM element selector.
*/
exports.customClick = async (appWindow, selector) => {
// Due to an error with await appWindow.click('button[type="submit"]'); we are using a workaround.
// More info about it here: https://github.com/microsoft/playwright/issues/1808
await appWindow.$eval(selector, (element) => element.click());
};