Skip to content
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

Detox Primitive ReferenceError: Element is not defined #893

Closed
Kielan opened this issue Aug 21, 2018 · 2 comments
Closed

Detox Primitive ReferenceError: Element is not defined #893

Kielan opened this issue Aug 21, 2018 · 2 comments

Comments

@Kielan
Copy link

Kielan commented Aug 21, 2018

potentially related issues
#795

Description

I am new to using Detox but it appears to me that primitives are not being properly set as jest globals following the setup and usage guides I could find in the documentation. I get the code in the console ReferenceError: element is not defined. Maybe there is a way to improve the logging to clarify these config errors for good

Repo to reproduce:

https://github.com/Kielan/OnyxWalletReactNative

Detox v8.1.6^
Node v8.9.4,
React Native v0.56.0
Device iphone 7 sim release and debug,
Xcode v and macOS Versions

Device and verbose Detox logs

ReferenceError: element is not defined

  14 | })
  15 | 
> 16 | it(':ios: shows splash screen and then login', async () => {
     |                                                ^
  17 |   await expect(element(by.label('animateLoginLabel'))).toBeVisible()
@Kielan Kielan changed the title Detoz Primitive ReferenceError: Element is not defined Detox Primitive ReferenceError: Element is not defined Aug 21, 2018
@LeoNatan
Copy link
Contributor

This is a usage question.

@support
Copy link

support bot commented Aug 21, 2018

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

@support support bot closed this as completed Aug 21, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants