Skip to content

make timeout override to be partial and enable enable check exclusion.#79

Merged
saikrishna321 merged 9 commits intomainfrom
feature/#78
Jun 22, 2023
Merged

make timeout override to be partial and enable enable check exclusion.#79
saikrishna321 merged 9 commits intomainfrom
feature/#78

Conversation

@Dileep17
Copy link
Copy Markdown
Contributor

fix #78

@Dileep17 Dileep17 linked an issue Jun 19, 2023 that may be closed by this pull request
@Dileep17 Dileep17 requested a review from saikrishna321 June 19, 2023 18:01
@Dileep17
Copy link
Copy Markdown
Contributor Author

@saikrishna321 review and release.

@saikrishna321
Copy link
Copy Markdown
Member

@Dileep17 please update package-lock

src/element.js Outdated
newtimeouts.intervalBetweenAttempts = elementWaitProps.intervalBetweenAttempts;
}
if (elementWaitProps.excludeEnabledCheck) {
newtimeouts.excludeEnabledCheck = elementWaitProps.excludeEnabledCheck;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use object assignment here instead of multiple if statements?
Something like:

const newTimeouts = {
timeout: elementWaitProps.timeout || defaultTimeOuts.timeout,
intervalBetweenAttempts: elementWaitProps.intervalBetweenAttempts || defaultTimeOuts.intervalBetweenAttempts,
excludeEnabledCheck: elementWaitProps.excludeEnabledCheck || defaultTimeOuts.excludeEnabledCheck
};

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SrinivasanTarget @saikrishna321 refactored to reduce the complexity of assigning defaults and overrides.

@saikrishna321 saikrishna321 added the bump:major Bump release to major version label Jun 22, 2023
@github-actions
Copy link
Copy Markdown

🏷️ [bumpr] Next version:2.0.0 Changes:1.5.0...AppiumTestDistribution:feature/#78

@saikrishna321 saikrishna321 merged commit 36ddcc9 into main Jun 22, 2023
@github-actions
Copy link
Copy Markdown

🚀 [bumpr] Bumped! New version:2.0.0 Changes:1.5.0...2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump:major Bump release to major version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add possibility to configure plugin for element clickability

3 participants