Skip to content

Erroneous assertion not breaking the Scenario #884

@vinicius978

Description

@vinicius978

What are you trying to achieve?

I'm trying to do an assertion in a test Scenario with 2 values taken from two different pages on a website

What do you get instead?

Even forcing the assertion to fail, test keeps outputting that it PASSED.

A snippet of the assertion part:

        let assert = require('assert');
        I.say('Assertion...');
        assert.true(value1 == (value2 + value3));

I need like a I.assertThat(expression) in order for the test to fail when values don't match.
Right now I'm researching about assertions on codecept and trying to figure out a solution for that.

Details

  • CodeceptJS version: 1.1.1
  • NodeJS Version: 9.4.0
  • Operating System: Linux Mint
  • WebDriverIO

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions