Syncano / syncano-testing-examples

Nightwatch End to End testing examples for React applications
https://www.syncano.io/
46 stars 11 forks source link

Set environment variables on Windows (10) #12

Open ngocnguyenvan opened 7 years ago

ngocnguyenvan commented 7 years ago

Hi syncano,

I'm following your examples and I've seen the incorrect content at README.

Here yours

SET EMAIL="your_email"
SET PASSWORD="your_password"

However, if we have quote, the email value what filled in email textbox is "your_email" (expected your_email), and caused error when run Part 1 as below: - User Logs in (26.999s) Expected element <//div[@class="description-field col-flex-1"]> to be visible - element was not found - expected "visible" but got: "not found" at Object.UserLogsIn [as User Logs in] (F:/personal-projects/syncano-testing-examples-master/part-1/tests/testLogin.js:11:26)

So, we should change to

SET EMAIL="your_email"
SET PASSWORD="your_password"

Tested and work correctly!

Thanks for your work ;)