Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix enable highlight element #3778

Merged
merged 4 commits into from Jul 27, 2023

Conversation

philkas
Copy link
Contributor

@philkas philkas commented Jul 25, 2023

Motivation/Description of the PR

The 'highlightElement' option (described in the helper docs) was not correctly checked in the code, so that this option had no effect. Furthermore no default value was defined. So this fix sets the option per default to false

Applicable helpers:

  • Playwright
  • Puppeteer
  • WebDriver
  • REST
  • FileHelper
  • Appium
  • TestCafe

Applicable plugins:

  • allure
  • autoDelay
  • autoLogin
  • customLocator
  • pauseOnFail
  • coverage
  • retryFailedStep
  • screenshotOnFail
  • selenoid
  • stepByStepReport
  • stepTimeout
  • wdio
  • subtitles

Type of change

  • 馃敟 Breaking changes
  • 馃殌 New functionality
  • 馃悰 Bug fix
  • 馃搵 Documentation changes/updates
  • 鈾笍 Hot fix
  • 馃敤 Markdown files fix - not related to source code
  • 馃拝 Polish code

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint) (too many errors not from my side)
  • Local tests are passed (Run npm test)

@kobenguyent
Copy link
Collaborator

@philkas may you also fix for https://github.com/codeceptjs/CodeceptJS/blob/3.x/lib/helper/WebDriver.js#L2917 as webdriver also provides this feat?

@philkas
Copy link
Contributor Author

philkas commented Jul 25, 2023

@kobenguyent oh yes for sure, I can do it.

@philkas
Copy link
Contributor Author

philkas commented Jul 25, 2023

@kobenguyent done

@kobenguyent
Copy link
Collaborator

@kobenguyent done

Nice, thank you @philkas

@DavertMik
Copy link
Contributor

Thank you! Looks good 馃憤

@DavertMik DavertMik merged commit a8443e6 into codeceptjs:3.x Jul 27, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to enable/disable the highlightElement feature does not work
4 participants