If your controller action looks like this:  respond_to do |format|   format.html { raise 'Unsupported' }   format.js # index.js.erb end   and your functional test looks like this:  test "javascript response..." do   get :index end   i...
Until now, I was testing my non-Angular website (I only have JS, no node, not even ES6) using Jasmine, Karma and Travis CI.   I am now trying to write functional tests (in case my vocabulary is off, I mean scenario tests for which I want to test "...
My goal is to be able to write pure routes for an Express.js server. Is that even possible?  For accessing the database and stuff I know I can use the fabulous Future monad to keep things pure, but how about the route rendering itself?  One of the gr...
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));...
We are having a little problem with a functional test with casper.js.  We request the same resource twice, first with the GET and then with POST method. Now when waiting for the second resource (POST) it matches the first resource and directly goes t...
Got a test for a React app's login function in a Page class:     async login(t) {     console.log('starting login...');     debugger;     this.logBrowserMessages(t);      await this.loginModal({ visibilityCheck: true });     await t...
Bit of background: The team is writing QUnit UI tests AND browser automation tests using C#. I would like to create a JSON object that can be shared between the two. That way if a class name gets changed, the config file will only need to be updated...
Testing a modal dialog with casper:   .then(function() {    this.click(variables.configButton); }).then(function() {   this.capture('./test/screencaps/edit-afterClickFlyout1.png');    test.assertVisible('#addDataDialog'); }).then(func...
When I try to run Dalek tests in Firefox, Firefox browser only opens, but no tests are run. Anybody else run into this? Same test works fine in Chrome and PhantomJS.  My test is extremely basic:  dalektest.js  module.exports = {     "Page title i...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.