Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

step-6: Error: Expected undefined to be '/phones/nexus-s' #229

Closed
@yaojingguo

Description

@yaojingguo

In step-6, when running npm run protractor, there is the following error:

Failures:

  1) PhoneCat App Phone list view should render phone specific links
   Message:
     Expected undefined to be '/phones/nexus-s'.
   Stacktrace:
     Error: Expected undefined to be '/phones/nexus-s'.
    at /home/jing/code/tutoral/angular-phonecat/test/e2e/scenarios.js:63:35

The fix is to change expect(url.split('#')[1]).toBe('/phones/nexus-s'); to expect(url).toBe('/phones/nexus-s');.

Angular version is 1.3.10. I am using a Ubuntu 14.04 box.

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