Skip to content

Getting "Uncaught TypeError: Cannot define property hammerhead|processed-context, object is not extensible" error after upgrade to 0.17.2 version #1767

@thecodejack

Description

@thecodejack

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

Unable to run tests. These tests run successfully till testcafe@0.16.2 version. Today when I tried to upgrade, getting following error.

bash.exe"-3.1$ npm i testcafe@0.17.0

> testcafe-browser-tools@1.2.4 postinstall C:\grid\node_modules\testcafe-browser-tools
> node ./bin/fix-permissions.js

grid-example@1.0.0 C:\grid
`-- testcafe@0.17.0  invalid
  +-- testcafe-browser-tools@1.2.4
  | `-- linux-platform-info@0.0.2
  +-- testcafe-hammerhead@11.0.3
  `-- testcafe-legacy-api@3.1.0

npm WARN grid-example@1.0.0 No description
npm WARN grid-example@1.0.0 No repository field.
npm WARN grid-example@1.0.0 No license field.
bash.exe"-3.1$ testcafe chrome tests/test-specs/bugs/1649.test.js
Using locally installed version of TestCafe.
 Running tests in:
 - Chrome 60.0.3112 / Windows 7 0.0.0

1649 bug
 × Select multiple checkboxes using shift key selection

   1) Error on page "http://url.com/grid/":

      Uncaught TypeError: Cannot define property hammerhead|processed-context, object is not extensible

      Browser: Chrome 60.0.3112 / Windows 7 0.0.0

         18 |
         19 |fixture `1649 bug`
         20 |    .page `${url}`;
         21 |
         22 |test('Select multiple checkboxes using shift key selection', async t => {
       > 23 |    await t.click(gridPage.firstGrid.getNthRowCheckBox(0));
         24 |    await gridPage.firstGrid.scrollByPercentage(50)();
         25 |    //timeout needed to wait for rows rendering after scroll due to DOM Virtualisation
         26 |    await timeout(100);
         27 |    await t.click(gridPage.firstGrid.getNthRowCheckBox(8), {
         28 |        modifiers: {

         at <anonymous> (C:\grid\tests\test-specs\bugs\1649.test.js:23:13)
         at test (C:\grid\tests\test-specs\bugs\1649.test.js:22:1)



 1/1 failed (8s)

Tests have failed in all 0.17.* versions. They are running fine in 0.16.2 version.

Update: Looks like issue may be with Chrome( version 60). Other browsers are able to run the tests.

What is the expected behavior?

Tests should run successfully.

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL: Internal URL

Test code

Specify your

  • operating system: Windows 7
  • testcafe version: 0.17.*
  • node.js version: v6.9.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions