Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

What do I do after installing Navalia to execute a test script? #74

Closed
davidjeddy opened this issue Mar 8, 2018 · 0 comments
Closed

Comments

@davidjeddy
Copy link

davidjeddy commented Mar 8, 2018

Hello All, awesome project, so much easier to setup than PhanstomJs + CasperJs.

I am attempting to get a POC of End-to-End testing using Navalia. This is in an effort to modernize our frontend testing process. We are wanting to use Javascript style syntax as is aligns better with our projects.

screen shot 2018-03-08 at 4 58 29 pm

I get Navalia running in the terminal...
screen shot 2018-03-08 at 5 01 33 pm

Then I attempt to execute the following basic test:

./test_1.js:

const { Chrome } = require('navalia');
const chrome = new Chrome();

chrome
    .goto('https://amazon.com')
    .type('input', 'Kindle')
    .click('.buy-now')
    .end()
    .then((responses) => {
    console.log(responses); // ['https://www.amazon.com/', true, true, true]
});

...but now what? How do I tell node to execute the ./test_1.js again Navalia and this get a chrome session processing the commands.

Sorry if this is super-noob, my background as a server-side engineer leaves my client side knowledgte lacking.

Thank you in advance for the assistance.


After checking the backlog of issue this is a dependant issue of #72

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant