Search found 23 matches

Would you add it for a Scooby Snack?

Image
Does the code profiling utility support ES6 arrow functions? It seems to not, as I'm getting a warning at the position of my first arrow function: Instrumentation of the file failed: app/view/{foobar}.js, error: SyntaxError: Unexpected token (69:49) Ext.Object.each(me.icons, (key, config) => { // fo...
the docs say that the target can only be a DOM element or an ExtJS component: Docs updated. Two issues with your current approach. 1. Your target will be evaluated too early, as it's evaluated at t.chain creation time 2. When using enablePageRedirect, 'document' and 'window' point to the top window...
Thanks for the info, mats. We are using that flag -- I just hadn't noticed because we have our base setup abstracted from the rest of the testing code and the guy most familiar with it was out of the office. :) I didn't realize a selector string could be used there. That makes things much easier -- ...
Apologies if this is a stupid question. I've been working on adding tests to our suite for our new plain HTML/JS/CSS login page, and it's the first time we're writing tests that aren't for an ExtJS app. Some of the test helpers seem to work for verifying that elements exist, but using document.getEl...
When using PhantomJS to run tests, is there a way to perform PhantomJS actions based on calls within a test? Right now I can determine when PhantomJS is running my tests by adding this to the phantomjs-launcher.js file after currentPage.open: iface.executeScript("window.TestEnvironment = 'Phant...
Case 2 sounds like exactly what we need. Thank you for the quick response - I appreciate it.
How can we extend our TestClass to use nested objects so we don't clutter up the test namespace? For example, we would like to use Test.Dummy.getBacon(); instead of Test.getBacon(); so we tried this based on how the mixins are structured for Siesta.Test.ExtJS: Dummy.js Role('TestClass.Dummy', { has:...
This should work out of the box, can you upload a real test case we can look at? It ended up working out just fine. Chrome was caching a copy from when we wrote it the wrong way, and someone on the team mistakenly capitalized the L in preload. Thank you for confirming that we were on the right trac...
Our team would like to load an additional set of tools for testing our app to supplement what we're already testing with Siesta. We tried adding our new JS file to the Harness.configure preloads and set preload to 'inherit' in Harness.start because we're using a hostPageUrl. Our test files still did...