Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

- Error: xit expects a function argument; received [object AsyncFunction] #90

@Xotabu4

Description

@Xotabu4

Tried to skip protractor tests with typescript async/await, but getting pretty nasty error - - Error: xit expects a function argument; received [object AsyncFunction]

jasminewd -  "version": "2.1.0"
Nodejs - 7.8, 7.10
SELENIUM_PROMISE_MANAGER: false

spec:

    xit('can sort by favorited', async () => {
        await favoriteFilter.selectOption('No')

    })

I think this could be easily fixed, but not sure is this jasminewd error or jasmine?

If someone can point me how to fix locally or point to the line of code in this repo - i can prepare pull request

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