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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.15.1-rc.1 is throwing Uncaught object "[object Object]" was thrown. Throw Error instead. #6405

Closed
raj-balaebail opened this issue Jul 21, 2021 · 5 comments
Assignees
Labels
FREQUENCY: level 2 TYPE: bug The described behavior is considered as wrong (bug).

Comments

@raj-balaebail
Copy link

What is your Test Scenario?

The test is clicking a button. Currently I get
Uncaught object "[object Object]" was thrown. Throw Error instead.

https://hub.docker.com/layers/testcafe/testcafe/1.15.1-rc.1/images/sha256-eff6bea6e23556bd041d47a3a02b74a8fd123710d4c2b21f0785a0d93ffed6d6?context=explore

What is the Current behavior?

rajbalaebail@Rajs-MacBook-Pro e2e-tests % docker run -v /Users/rajbalaebail/amount-repos/e2e-tests/testcafe:/tests -it testcafe/testcafe:rc chromium /tests/tests/uil/apply/eloan-tests/personal-application-page/personal-application-page-tests.spec.js
 Running tests in:
 - Chrome 91.0.4472.164 / Linux 0.0

Personal application page tests - eLoan
App ID: 49
 ✖ eLoan - Step 1 - PA Page: Verify person age <18 is declined

   1) Uncaught object "[object Object]" was thrown. Throw Error instead.

      Browser: Chrome 91.0.4472.164 / Linux 0.0

What is the Expected behavior?

rajbalaebail@Rajs-MacBook-Pro e2e-tests % docker run -v /Users/rajbalaebail/amount-repos/e2e-tests/testcafe:/tests -it testcafe/testcafe:1.15.0 chromium /tests/tests/uil/apply/eloan-tests/personal-application-page/personal-application-page-tests.spec.js

 Running tests in:
 - Chrome 91.0.4472.124 / Linux 0.0

Personal application page tests - eLoan
App ID: 51
 ✓ eLoan - Step 1 - PA Page: Verify person age <18 is declined

What is your web application and your TestCafe test code?

Your website URL (or attach your complete example):
Your complete test code (or attach your test files):
 
Your complete configuration file (if any):

Your complete test report:

Screenshots:

Steps to Reproduce:

  1. Go to my website ...
  2. Execute this command...
  3. See the error...

Your Environment details:

  • testcafe version:
  • node.js version:
  • command-line arguments:
  • browser name and version:
  • platform and version:
  • other:
@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Jul 21, 2021
@miherlosev miherlosev added the STATE: Need simple sample A simple sample is required to examine the issue. label Jul 22, 2021
@github-actions
Copy link

Thank you for submitting this issue. We would love to assist you and diagnose it. However, we need a simple sample that we can easily run on our side in order to replicate the issue and research its cause. Without a sample, we are not able to figure out what's going on and why this issue occurs. We look forward to your response.

@github-actions github-actions bot added STATE: Need clarification An issue lacks information for further research. and removed STATE: Need response An issue that requires a response or attention from the team. STATE: Need simple sample A simple sample is required to examine the issue. labels Jul 22, 2021
@raj-balaebail
Copy link
Author

Looks like this is happening when you try to press the TAB button.

import { Selector, t } from 'testcafe';

fixture('DevExpress/testcafe/issues/6405')
  .page('https://eloan.stg.internal.amount.com/apply')

test('test', async t => {
  console.log('here')
  await t.pressKey('tab')
  console.log('here 1')
})
rajbalaebail@Rajs-MacBook-Pro e2e-tests % docker run -v /Users/rajbalaebail/amount-repos/e2e-tests/testcafe:/tests -it testcafe/testcafe:rc chromium /tests/tests/uil/apply/eloan-tests/personal-application-page/test.spec.js
 Running tests in:
 - Chrome 91.0.4472.164 / Linux 0.0

 DevExpress/testcafe/issues/6405
here
 ✖ eLoan - Step 1 - PA Page: Verify fields, field errors, tooltips, dropdowns

   1) Uncaught object "[object Object]" was thrown. Throw Error instead.

      Browser: Chrome 91.0.4472.164 / Linux 0.0



 1/1 failed (19s)

@no-response no-response bot removed the STATE: Need clarification An issue lacks information for further research. label Jul 22, 2021
@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Jul 22, 2021
@AlexKamaev
Copy link
Contributor

AlexKamaev commented Jul 23, 2021

I didn't manage to reproduce the issue. It looks like the website is unreachable for me. Please give us access to your website or prepare a separate sample. Thank you in advance.
If you need to share some credentials with us, you can send it to support@devexpress.com

Please note that our policy prevents us from accessing internal resources without prior written approval from a site owner. If we need to access non-public parts of your website or pass through authorization pages, please ask the website owner to send us (support@devexpress.com)) a written confirmation. It must permit DevExpress personnel to remotely access the website and its internal resources for research/testing/ and debugging purposes.

@AlexKamaev AlexKamaev added STATE: Need clarification An issue lacks information for further research. and removed STATE: Need response An issue that requires a response or attention from the team. labels Jul 23, 2021
@raj-balaebail
Copy link
Author

@AlexKamaev you can try this on https://www.my.eloan.com/apply instead.

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Jul 26, 2021
@no-response no-response bot removed the STATE: Need clarification An issue lacks information for further research. label Jul 26, 2021
@AlexKamaev
Copy link
Contributor

I was able to reproduce the issue. Thank you for your assistance.

@AlexKamaev AlexKamaev added TYPE: bug The described behavior is considered as wrong (bug). FREQUENCY: level 2 and removed STATE: Need response An issue that requires a response or attention from the team. labels Jul 27, 2021
@AlexKamaev AlexKamaev self-assigned this Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FREQUENCY: level 2 TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

3 participants