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

A JavaScript error occurs on testing a Blazor app page containing Monaco Editor #7378

Closed
Dmitry-Ostashev opened this issue Nov 11, 2022 · 1 comment · Fixed by DevExpress/testcafe-hammerhead#2816
Assignees
Labels
Support Center An issue created/received from the Support Center ticket. SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug).

Comments

@Dmitry-Ostashev
Copy link
Contributor

Dmitry-Ostashev commented Nov 11, 2022

What is your Scenario?

Test a Blazor app page containing Monaco Editor

What is the Current behavior?

The following JavaScript error occurs:

worker-hammerhead.js:3320 Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:1401/!s/https://unpkg.com/monaco-editor@latest/min/vs/base/worker/workerMain.js' failed to load.
    at importScripts (http://localhost:1401/worker-hammerhead.js:3320:49)
    at blob:http://localhost:1401/bcef2816-abdc-4b0a-8941-e99675fc5b2d:6:2

What is the Expected behavior?

No errors occur

What is your public website URL? (or attach your complete example)

See https://supportcenter.devexpress.com/internal/ticket/details/T1119220.

What is your TestCafe test code?

See https://supportcenter.devexpress.com/internal/ticket/details/T1119220.

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

  1. Open the project attached to the last comment.
  2. dotnet run
  3. Launch the TestCafe Hammerhead playground.
  4. Open the Dashboard page and DevTools. See the error in Console.

TestCafe version

testcafe-hammerhead 28.2.0

Node.js version

v16.14.2

Command-line arguments

gulp http-playground

Browser name(s) and version(s)

Chrome

Platform(s) and version(s)

Windows 10

Other

No response

@Dmitry-Ostashev Dmitry-Ostashev added the TYPE: bug The described behavior is considered as wrong (bug). label Nov 11, 2022
@Dmitry-Ostashev Dmitry-Ostashev changed the title A JavaScript error occurs when testing a Blazor app page containing Monaco Editor A JavaScript error occurs on testing a Blazor app page containing Monaco Editor Nov 11, 2022
@Dmitry-Ostashev Dmitry-Ostashev added SYSTEM: hammerhead Support Center An issue created/received from the Support Center ticket. labels Nov 11, 2022
@AndreyBelym AndreyBelym self-assigned this Nov 23, 2022
AndreyBelym added a commit to DevExpress/testcafe-hammerhead that referenced this issue Dec 10, 2022
…vExpress/testcafe#7378) (#2816)

* fix: pass sessionId to blob worker scripts with processing (closes #7378)

* test: fix lint

* test: fix tests

* refactor: fix review remarks

* test: fix tests after merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Center An issue created/received from the Support Center ticket. SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
2 participants