Skip to content

Not reporting errors from I.see correctly #137

Closed

Description

@smozely

Hi there ... great framework, the API is the best I've seen in JS land. Just stared using it and hit an issue with error reporting, thinking I must be doing something wrong.

See like whenever something is failing a screenshot is being recorded, but the process just exits (exit code 0) and doesn't close the browser.

for example this simple flow ...

Scenario('New User Can Register', (I) => {

    I.amOnPage('/');
    I.see('Login');

    I.click('Sign up for free');
    I.fillField('name', 'Test ' + id);

    I.fillField('email', 'test+' + id + '@atomic.io');
    I.fillField('password', 'abcd1234');

    I.click('Sign up');

    I.see('Projects MONKEY');
});

One the last the last line I.see('Projects MONKEY'); the page really only says Projects

and in the output all I get is

• I am on page "/"
• I see "Login"
• I click "Sign up for free"
• I fill field "name", "Test 51133"
• I fill field "email", "test+51133@example.com"
• I fill field "password", "abcd1234"
• I click "Sign up"
• I see "Projects Monkey"

... and an extra chrome process still running ...

If I change to I.see('Projects') then I get the

 • I see "Projects"
 ✓ OK in 6916ms

  OK  | 1 passed   // 8s

Activity

  1. changed the title [-]Not reporting errors correctly[/-] [+]Not reporting errors from I.see correctly[/+] on May 16, 2016
  2. smozely commented on May 16, 2016

    @smozely
    Author

    Been doing a bit more digging (I kinda need to get past this before trying to sell it over raw WebdriverIO to the rest of my team)

    Seems like it may have regressed since Version 0.2.8

    With that version for the same test I get ...

    • I click "Sign up"
     • I see "Projects MONKEY"
     ✖ FAILED in 3119ms
    
    
    -- FAILURES:
    
      1) Basic Basic:
    
          expected web page to include Projects MONKEY
          + expected - actual
    
          -Sign up for free
          -Get a 30-day free trial, no credit card required.
          -Registration unsuccessful
          -Name
    

    As expected

  3. smozely commented on May 18, 2016

    @smozely
    Author

    Ok, reading other issues on this repo more thoroughly I see this is a dup of #98 and #93.

    I've applied the change from PR #94 and seems to be working for me, though I think screenshots are now broken ... but they are not too important compared to this not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions