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
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.
Thank you for providing these details. We found the same problem with all negative assertions.