Bug Report T920714
Visible to All Users

The "Uncaught SyntaxError: Unexpected token ';'" error occurs when recording an Angular website test

created 5 years ago (modified 5 years ago)

Hello,

our team decided to use TestCafe Studio for creating tests. But when I try to record a test with my local hosted application using TestCafe Studio, an " Uncaught SyntaxError: Unexpected token ';' " error is thrown in the console and the page remains empty. The same phenomenon occurs when trying to record a test with our productive application.

We're using angular 9.0.1 and devextreme-angular 19.2.6 in our productive app.
On my local machine I'm using angular 9.0.1 and devextreme-angular 20.1.6.
The error occurs on both systems with both devextreme versions …

I attached an screenshot with the source code and marked error. The error occurs in the vendor.js, inside the DxTemplateDirective class in line 138553:

JavaScript
... => { var; if (!params || !params._angularIntegration) { childView.destroy(); } }

It seems to me that the var; expression is not correct at this point. Is this a known issue? Do you have an approach to solve this problem?

I'm looking forward to you reply.

Best regards

Comments (1)
Alex Skorkin (DevExpress) 5 years ago

    Hello David,

    Thank you for reaching out to us and submitting this issue. A similar issue was reported recently:

    Cant open Login page when opend with testcafe

    However, the issue was fixed on the user's side. I have managed to replicate this behavior when recording a test with your production website. Our team will research it and find a suitable solution if any. You will be automatically notified once we make progress.

    Answers approved by DevExpress Support

    created 5 years ago

    We have addressed the issue described in this ticket and will include a fix in our next maintenance update. To apply this solution before official release, request a hotfix by clicking the appropriate version link.

    Note: Hotfixes may be unavailable for betas/updates set for release within a week.

    Additional information:

    Hello,

    I checked your project with the latest version of open source TestCafe (v1.9.0) and it works without any syntax errors. We are working on updating this TestCafe version in Studio.

      Comments (3)
      DD DD
      David Doetkotte 5 years ago

        Hello Vladimir,

        thank you for addressing the problem so quickly.

        I'm looking forward to include the updated TestCafe Studio version into our workflow as soon as it is released. :-)

        Best regards

        DevExpress Support Team 5 years ago

          Hello,

          Would you mind if I make this ticket public? It will allow us to include this ticket in our TestCafe Studio release notes. I can remove the page URL address from your question.

          DD DD
          David Doetkotte 5 years ago

            Hello,

            I dont mind if the URL address will be removed.
            I'm glad that I can help this way.

            Best regards

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.