Questions tagged [intern]

A JavaScript testing framework.

Description

Intern is an open-source project hosted on GitHub. It is a complete test stack for JavaScript designed to help you write and run consistent, high-quality test cases for your JavaScript libraries and applications. It can be used to test any JavaScript code.

External links

556 questions
2
votes
1 answer

Chrome/Selenium: use-file-for-fake-video-capture not working anymore

I have automated ui-tests that test a web application in chrome using https://theintern.io/ The application offers a barcode scanner using the device camera (https://github.com/zxing/zxing). To test this feature, a fake barcode is shown to the…
Morious
  • 85
  • 1
  • 8
2
votes
0 answers

Not able to locate the element on web page with intern and leadfoot API and getting error

But this is giving me below error: NoSuchElement: [POST http://localhost:4444/wd/hub/session/3a9b569788f086d4d68d52d99ab95d76/element/%5Bobject%20Object%5D/click] no such element: Element_id length is invalid define(function (require) { …
2
votes
0 answers

Running Intern with React Prop-Types?

I am trying to move my team to 15.6.1 of React. As such, prop-types are now a separate package. Currently, when running Intern tests with Enzyme, it fails to execute because of the following: Running "intern:runner" (intern) task SUITE ERROR Error:…
2
votes
2 answers

How to use Intern with TypeScript and webpack?

Is it possible at all? When I try to import Intern like this in my tests: import * as registerSuite from 'intern!object' and then I run webpack to transpile my *.ts tests, I get the following error: TS2307: Cannot find module…
Anatoly U
  • 258
  • 1
  • 11
2
votes
1 answer

How to correctly design page objects using theintern testing framework

I'm creating functional tests using theintern framework. I want to model my tests using "page objects" since I would like the code to be reusable. In the original documentation, there is a very simplified sample that shows how to create a page…
gillyb
  • 8,760
  • 8
  • 53
  • 80
2
votes
1 answer

Selenium testing understanding

I've been looking into setting up testing for an app but I'm struggling to get a proper understanding on selenium. Can anyone explain the significance of selenium web driver and selenium server? I see its normal to test using mocha as a framework,…
Elliot
  • 1,893
  • 4
  • 17
  • 35
2
votes
1 answer

Leadfoot moveMouseTo requiring X/Y offsets when element is present

In the docs for leadfoot Command#moveMouseTo it states that every argument is optional (https://theintern.github.io/leadfoot/Command.html#moveMouseTo). When I pass in an element without passing in X or Y offsets, I get an error about the command…
MBielski
  • 6,628
  • 3
  • 32
  • 43
2
votes
2 answers

Intern or Protractor for Angular E2E Testing

Besides being able to leverage Angular locator methods, why would one use the Protractor testing framework instead of the Intern testing framework for Angular end to end testing?
Michael Wu
  • 1,177
  • 1
  • 13
  • 34
2
votes
1 answer

Error importing Node.js modules into Intern tests

I'm trying out Intern for testing our Node.js modules. I've got it set up to run an empty test and even require node modules, but when I try to require one of the modules in our package I get the error: /path/to/app/node_modules/path/path.js:327 …
orlade
  • 2,060
  • 4
  • 24
  • 35
2
votes
2 answers

Not able to run intern functional tests. Error: [POST http://localhost:4444/wd/hub/session] connect ECONNREFUSED

Having node 0.12 and intern 3. Trying to run intern based functional tests gives following error: SUITE ERROR Error: [POST http://localhost:4444/wd/hub/session] connect ECONNREFUSED at Server.createSession …
user2325313
  • 99
  • 2
  • 13
2
votes
1 answer

How to listen for a JS page load event using intern

The application under test emits 'page-load' event after every page load and I want to take screenshot after the page has successfully loaded. Tried to listen for this event using Leadfoot's execute method. But it does not seem to work. Can anyone…
user2325313
  • 99
  • 2
  • 13
2
votes
2 answers

Intern test framework: Command + v for pasting contents from clipboard does not work

I have contents in the clipboard which I would like to paste to a textbox. When I try .click() .pressKeys(['\uE03D', 'v']) it does not paste the contents to the textbox. All other special keys work. For example, for using shift key, when I…
user3587203
  • 66
  • 1
  • 6
2
votes
1 answer

Intern and Leadfoot conditional wait until

If there a way to perform .click() after the element become visible. My function chain is built like that: this.remote.findByXpath("//div[@data-index='blockContainer']/button[text()='Create new']").then(function(element) { return…
Alex C Li
  • 21
  • 2
2
votes
0 answers

How can i configure team city to execute the intern's test runner with phantom js as the configured browser

I'm trying to add a team city build step for my intern unit tests that execute against a web browser, but I'm uncertain how to configure and run phantom js. I have installed this plugin in teamcity which gives me a phantom js build…
2
votes
1 answer

How to get The Intern to run Functional Tests

I'm working on switching our Unit/Functional test framework to Intern, but all the different configurations I've tried result in Intern running only the unit tests and not picking up the functional tests at all. Selenium Standalone and…
Edward Coyle Jr.
  • 437
  • 2
  • 13