Skip to content

Protractor tests don't actually run but report passing (webpack branch) #2072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
caseyhoward opened this issue Sep 12, 2016 · 4 comments
Closed

Comments

@caseyhoward
Copy link

  1. Linux Mint 17.1

  2. angular-cli: 1.0.0-beta.11-webpack.8
    node: 6.5.0
    os: linux x64

  3. Ran "npm init" then "ng init" in a new directory.
    Added the following test to e2e/app.e2e-spec.ts:

    it('should blow up', () => {
      page.navigateTo();
      expect(page.getParagraphText()).toEqual('app doesn\'t work!');
    });

    Ran "npm start" in one tab and "npm e2e" in another

  4. The error is that there is no error. The test I added should have failed.

$ npm run e2e

> blah@0.0.0 pree2e /home/.../blah
> webdriver-manager update

[normal looking chrome driver output]

> blah@0.0.0 e2e /home/...
> protractor

[12:16:55] I/direct - Using ChromeDriver directly...
[12:16:55] I/launcher - Running 1 instances of WebDriver
Spec started

  blah App
    ✓ should display message saying app works
    ✓ should blow up

Executed 2 of 2 specs SUCCESS in 0.025 sec.
[12:16:56] I/launcher - 0 instance(s) of WebDriver still running
[12:16:56] I/launcher - chrome #01 passed
  1. It appears that it isn't doing anything at all. No matter how many steps you add to your test in just exits immediately.
@kv113813
Copy link

I do have similar issue with Ubuntu + selenium, protractor setup with headless chrome. It passes all the test cases where many shows up failed in other windows/MAC setups and also passes in fact intensionally made failed test cases.
screen shot 2016-09-12 at 4 57 27 pm

@ghost
Copy link

ghost commented Sep 13, 2016

Fixed with protractor 4.0.5, make an update or revert to 3

@filipesilva
Copy link
Contributor

Fixed in #2054

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants