Skip to content

Commit

Permalink
fix waitForSelectorTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
flameddd committed Dec 18, 2023
1 parent 7d4124e commit 1351154
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ async function run() {
// waitForSelectorVisible default false
const waitForSelectorVisible =
`${core.getInput('waitForSelectorVisible')}`.toLowerCase() === 'true';
let waitForSelectorTimeout = core.getInput('waitForSelectorTimeout');
if (Number.isNaN(waitForSelectorTimeout)) {
let waitForSelectorTimeout = Number(
core.getInput('waitForSelectorTimeout')
);
if (!waitForSelectorTimeout) {
// Number will turn '' to 0, !0 === true, set timeout default value
waitForSelectorTimeout = DEFAULT_WAIT_FOR_SELECTOR_TIMEOUT;
}
const waitForSelectorOptions = {
Expand Down

0 comments on commit 1351154

Please sign in to comment.