I need to switch to an iframe that has a dynamic name and id.  <iframe name="easyXDM_1435765828615" id="easyXDM_1435765828615">...</iframe>   I noticed LeadFoot has a switchToFrame() function, but when I pass it an element...
Is it possible to create and run test suites for custom client-side JavaScript, not created as Node modules? How should the configuration be altered then?  There is loader section in the Intern configuration, specifying the packages that will be loa...
The intern 2 documentation gives the following example of waiting for a condition to be true on a test page after loading it:  this.remote     .get(require.toUrl('./SomeTest.html'))     .then(pollUntil('return window.ready;', 5000));...
I'm having an issue getting Intern 2 to wait for elements to be present. In Intern 1 I was using  wait()to set express time periods for the page to wait for an element to be present after some user action. With Intern 2 there seems to be setFindT...
I'm getting the error Attempt to require unloaded module xxxxxx with the following intern.js test (myfile.js below does a require('xxxxxx')) for testing NodeJS.  define(function(require) {   var bdd = require('intern!bdd');   var...
I'm writing some functional tests using Intern/Leadfoot. These tests are end-to-end tests (called also stories) and between them there kind of data dependency. With that I mean that a test (ie. test2) will fail if the previous test (test1) did no...
My project follows the following (simplified) directory structure:  \ |- app    |- script1.js    |- script2.js |- test    |- intern.conf.js    |- test.spec.js    I'm using requirejs in my application and thus all scripts under app/ directory have...
I am having problems using any dojo modules with my functional test, I keep seeing window not defined errors or document not defined.  I am currently trying to use the dijit/registry like so (only importing its module so far)..  define([     'int...
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 requ...
I am writing a test suite for a JavaScript widget using Intern.  I have written some pure-JavaScript tests and some in-page DOM tests, but I'm a little stuck on how to write functional tests for the Ajax functionality, which should talk to my sim...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.