End-to-end(E2E) Testing for Vue.js application using Testcafe

End-to-end(E2E) Testing for Vue.js application using Testcafe

git clone https://github.com/Tech-49/E2E-Testcafe-Vue.gitcd E2E-Testcafe-Vue

npm run test

Once this will be finished you should be able to see the following output in your terminal:

"test": "testcafe chrome test/cases/*.test.js -S -s screenshots"

import selectors from '../model/selectors.js';
fixture(`About us Page`)
   .page('http://localhost:8080');

test('Check heading is exist on about us page! ', async tc => {
   await tc
   .click(selectors.aboutMenu)
   .expect(selectors.heading.innerText).eql("About Us")
});

import selectors from '../model/selectors.js';

Comment (1)

  • Cristin Reply

    Thanks for sharing Hardik!

    March 1, 2020 at 12:35 pm

Leave a Reply

Your email address will not be published. Required fields are marked *