Navigation Menu

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

Issue 2434 (handle .indexOf error) #2436

Merged
merged 6 commits into from Jun 18, 2020
Merged

Conversation

Georgegriff
Copy link
Collaborator

@Georgegriff Georgegriff commented Jun 10, 2020

Motivation/Description of the PR

Applicable helpers:

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

Applicable plugins:

  • allure
  • autoDelay
  • autoLogin
  • customLocator
  • pauseOnFail
  • puppeteerCoverage
  • retryFailedStep
  • screenshotOnFail
  • selenoid
  • stepByStepReport
  • wdio

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)
  • Local tests are passed (Run npm test)

@Vorobeyko Vorobeyko self-requested a review June 15, 2020 17:44
Vorobeyko
Vorobeyko previously approved these changes Jun 15, 2020
@Vorobeyko Vorobeyko dismissed their stale review June 15, 2020 17:55

@Georgegriff Tests were failed two times. Can you fix them ?

@Georgegriff
Copy link
Collaborator Author

I'm not sure how I could have broken those tests

Copy link
Contributor

@DavertMik DavertMik left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good to me

@DavertMik DavertMik merged commit 72a18c1 into codeceptjs:master Jun 18, 2020
Vorobeyko added a commit that referenced this pull request Jun 19, 2020
* updated docs

* release 2.6.5

* Fix valid data output (w3) (#2399)

* add alt for image UI page (fix w3 validator) (#2403)

* docs: fix typo in commands.md (#2405)

* remove unnecessary select placeholder from basics.md (#2407)

* fix display combination in changelog (#2409)

* add description to images (#2412)

* Fix android native locator support for appium helper (#2429)

* Update mobile.md

* Fix android native locator support for appium helper

* update the expected result for windows platform especially the absolute path case because in windows, path.resolve returns driver letter

* chore: jsdoc color param optional in `I.say` (#2443)

* update github links after repository migration (#2447)

* Fixed waitNumberOfVisibleElements for Webdriver (#2418)

* fix waitNumberOfVisibleElements

waitNumberOfVisibleElements returns false everytime as it does not filter the visible element count

* fix waitNumberOfVisibleElements

waitNumberOfVisibleElements returns false everytime as it does not filter for visible elements

* Issue 2434 (handle .indexOf error) (#2436)

* Makes suggested changes to have Chromium install

* fixes #2434

* fix playwright too

Co-authored-by: George Griffiths <george.griffiths@ibm.com>

* Puppeteer handle page error (#2435)

* Makes suggested changes to have Chromium install

* handle page crash

* handle undefined page

* dont open new tab on crash

* remove old try catch

Co-authored-by: George Griffiths <george.griffiths@ibm.com>

* Feat: Skip feature (#2427)

* Makes suggested changes to have Chromium install

* feat: implement skip of features

* Add unit tests, docs and type defs

* Apply suggestions from code review

Co-authored-by: George Griffiths <george.griffiths@ibm.com>
Co-authored-by: Michael Bodnarchuk <DavertMik@users.noreply.github.com>

* Release 2.6.6 (#2450)

* updated docs

* fixed tests & updated linter

* updated changelog

* fixed mocks

Co-authored-by: Davert <davert.ua@gmail.com>
Co-authored-by: Mykhailo Bodnarchuk <mykhailo.bodnarchuk@Mykhailos-MacBook-Pro.local>
Co-authored-by: Ihor Sychevskyi <26163841+Arhell@users.noreply.github.com>
Co-authored-by: Aleksei Gurianov <gurianov@gmail.com>
Co-authored-by: Tanakiat Srisaranyakul <tanakiats@hotmail.com>
Co-authored-by: Bartosz Wojtkowiak <bartosz@wojtkowiak.it>
Co-authored-by: Vijay Venkatesh <ilangovan.vijay@gmail.com>
Co-authored-by: George Griffiths <georgegriffiths@live.com>
Co-authored-by: George Griffiths <george.griffiths@ibm.com>
Co-authored-by: Michael Bodnarchuk <DavertMik@users.noreply.github.com>
Vorobeyko added a commit that referenced this pull request Aug 20, 2020
* updated docs

* release 2.6.5

* Fix valid data output (w3) (#2399)

* add alt for image UI page (fix w3 validator) (#2403)

* docs: fix typo in commands.md (#2405)

* remove unnecessary select placeholder from basics.md (#2407)

* fix display combination in changelog (#2409)

* add description to images (#2412)

* Fix android native locator support for appium helper (#2429)

* Update mobile.md

* Fix android native locator support for appium helper

* update the expected result for windows platform especially the absolute path case because in windows, path.resolve returns driver letter

* chore: jsdoc color param optional in `I.say` (#2443)

* update github links after repository migration (#2447)

* Fixed waitNumberOfVisibleElements for Webdriver (#2418)

* fix waitNumberOfVisibleElements

waitNumberOfVisibleElements returns false everytime as it does not filter the visible element count

* fix waitNumberOfVisibleElements

waitNumberOfVisibleElements returns false everytime as it does not filter for visible elements

* Issue 2434 (handle .indexOf error) (#2436)

* Makes suggested changes to have Chromium install

* fixes #2434

* fix playwright too

Co-authored-by: George Griffiths <george.griffiths@ibm.com>

* Puppeteer handle page error (#2435)

* Makes suggested changes to have Chromium install

* handle page crash

* handle undefined page

* dont open new tab on crash

* remove old try catch

Co-authored-by: George Griffiths <george.griffiths@ibm.com>

* Feat: Skip feature (#2427)

* Makes suggested changes to have Chromium install

* feat: implement skip of features

* Add unit tests, docs and type defs

* Apply suggestions from code review

Co-authored-by: George Griffiths <george.griffiths@ibm.com>
Co-authored-by: Michael Bodnarchuk <DavertMik@users.noreply.github.com>

* Release 2.6.6 (#2450)

* updated docs

* fixed tests & updated linter

* updated changelog

* fixed mocks

* Honor reporter configuration in mocha (#2465)

* Update compilerOptions.target to es2017 (#2484)

This resolves (#2483), since async and await are no long transpiled to ES generators

* Fix playwright set cookie (#2491)

* Fix setCookie for Playwright helper

* fix lint issue

Co-authored-by: Ben Barker <benbarker@workfront.com>

* Add documentation changes for check-tests (#2502)

* fix markdown video links (#2489)

* Update pageobjects.md (#2497)

* update plugins page "h" tags for more readable (#2501)

* Fix typo in locators docs section (#2503)

* Right click issue fix for Webdriver (#2485)

* Right click issue fix for Webdriver

* moveTo added in rightclick

* Native Click used to perform rightclick operation

* Added `forceRightClick` method to emulate rightclick event instead of using native events.

* Add --invert option for run-workers command (#2504)

* add missing REST helper (#2474)

* Release 2.6.7 (#2506)

* Prepare release-2.6.7

* Apply ESLint fixes.

* updated playwright workflow to use official action

Co-authored-by: Paul Vincent Beigang <paul.beigang@digistore24.com>
Co-authored-by: Davert <davert.ua@gmail.com>

* slight updates to changelog

* added forceRightClick method

* Fix missing screenshots on failure when REST helper is in use (#2513)

* Improve error logging (#2512)

* getPageTimeout: 30000, (#2516)

fix(page-timeouts): method amOnPage freezing, when  equal 0.

* update to relevant path & some fix (#2515)

* Update init.js (#2520)

* element screenshot method added (#2521)

* Rearranged typeof check to handle null parameter (#2494)

* Rearranged typeof check to handle null parameter

Error:
Cannot read property 'toString' of null
  typeError: Cannot read property 'toString' of null
      at G:\CodeceptJS-Test\node_modules\codeceptjs\lib\step.js:115:22

Solution: Rearranged typeof check to handle crash when helper method is called with null parameter.

* Update step.js

* Update step.js

* Prepare 2.6.8 release. (#2514)

* Prepare 2.6.8 release.

* Prepare 2.6.8 release.

Co-authored-by: Paul Vincent Beigang <paul.beigang@digistore24.com>

* Fix generate:helper command (#2523)

* Release 2.6.8 (#2522)

* added docs

* added type method

* fixed steps test

* fixed tests & types

* fixed tests & types

* fixed tests for type

* added type to Protractor

* fixed typing via Protractor

* removed protractor type

* removed protractor type

* fixed tests

* fixed tests

* fixed tests

* updated release paths

* feat(helper): Clear SessinStorage (#2524)

* Fix broken URLs (#2528)

* update readme file urls (#2534)

* update docs md to relevant path (#2530)

* Preserve initial error stack when helper load fail (#2541)

* Release 2.6.9 (#2545)

* fixed tests

Co-authored-by: Davert <davert.ua@gmail.com>
Co-authored-by: Mykhailo Bodnarchuk <mykhailo.bodnarchuk@Mykhailos-MacBook-Pro.local>
Co-authored-by: Ihor Sychevskyi <26163841+Arhell@users.noreply.github.com>
Co-authored-by: Aleksei Gurianov <gurianov@gmail.com>
Co-authored-by: Tanakiat Srisaranyakul <tanakiats@hotmail.com>
Co-authored-by: Bartosz Wojtkowiak <bartosz@wojtkowiak.it>
Co-authored-by: Vijay Venkatesh <ilangovan.vijay@gmail.com>
Co-authored-by: George Griffiths <georgegriffiths@live.com>
Co-authored-by: George Griffiths <george.griffiths@ibm.com>
Co-authored-by: Michael Bodnarchuk <DavertMik@users.noreply.github.com>
Co-authored-by: Trinh Pham <9128061+trinhpham@users.noreply.github.com>
Co-authored-by: Shan <shanplourde@gmail.com>
Co-authored-by: Ben Barker <barker.ben.m@gmail.com>
Co-authored-by: Ben Barker <benbarker@workfront.com>
Co-authored-by: Koushik Mohan <koushikmohan1996@gmail.com>
Co-authored-by: Jesus Vilar <jesus.vilar@gmail.com>
Co-authored-by: Marcin S艂owiak <marcin.slowiak.007@gmail.com>
Co-authored-by: suniljaiswal01 <45997477+suniljaiswal01@users.noreply.github.com>
Co-authored-by: Paul <pbeigang@gmail.com>
Co-authored-by: Peter Nguyen Tr <peter.nguyentr@gmail.com>
Co-authored-by: Paul Vincent Beigang <paul.beigang@digistore24.com>
Co-authored-by: Sitam Jana <43989292+sjana-aj@users.noreply.github.com>
Co-authored-by: Leonardo Bazico <leonardobazico@gmail.com>
Co-authored-by: Igor Strebezhev <xamgore@users.noreply.github.com>
Co-authored-by: Michail Shipov <mshipov@yandex.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Puppeteer] Errors lost if reject non Error (Cannot read property 'indexOf' of undefined)
4 participants