Skip to content

Visit helper not returning correct content upon using this.replaceWith for redirection  #204

@dnalagatla

Description

@dnalagatla

Currently, the Visit helper returns <body><h1>Redirecting to ... as DOM content instead of the DOM of the route to which the initial route redirects using this.replaceWith.

The issue is happening at this returned value - https://github.com/embermap/ember-cli-fastboot-testing/blob/master/index.js#L86

As fastboot provides the html content based on the statusCode and if it is a redirection getting redirection text - https://github.com/embermap/ember-cli-fastboot-testing/blob/master/addon-test-support/index.js#L46

I think for testing the finalized body should be provided by using page.domContents().body as HTML content.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions