Bug Report T742893
Visible to All Users

Not Deep Equal assertion does not work

created 6 years ago

I'm using a Not Deep Equal assertion, testing that a string on the webpage does not equal the same string, meaning the test should fail. I exported the test to JS, run it from the command line, and it fails as expected. Here's the converted JS code:
fixture.only('Carved Rock').page('http://localhost:5000');
test('New Test', async t => {
await t
.expect(Selector('.text-primary.discount-condition').innerText)
.notEql('WHEN YOU BUY 2 PAIRS OF SOCKS')
.expect(Selector('h1').withText('GET A GRIP').exists)
.eql(true);
});

When I run the same test in Studio, it passes.

Please let me know if it's something I'm doing wrong, or if it's this build of the studio.

Thanks

Comments (3)
ED ED
Elena D (DevExpress) 6 years ago

    Hello,
    Thank you for your inquiry. I managed to reproduce the problem, and we need some time to fix it.
    You'll be able to get the fix with the next update, but not in 1.0.1 because it's coming today.
    You can take a look at our FAQ to find information how to install the new TestCafe Studio version when it's available.

      Ok thanks. I think the same issue is happening with the `Not Within` assertion as well. It always passes, no matter what values I put in. I haven't checked the Not Contains.

      ED ED
      Elena D (DevExpress) 6 years ago

        Thank you for providing these details. We found the same problem with all negative assertions.

        Answers approved by DevExpress Support

        created 6 years ago (modified 6 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Additional information:

        I’m happy to inform you that we have fixed this issue in TestCafe Studio of version 1.0.2.
        You can download the latest build of our tool from here.

          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.