Questions tagged [chimp.js]
37 questions
0
votes
2 answers
Cleaning database after tests feature
I am trying to clean database after each feature however every approach which I tried failed. I tried to remove whole mongo collection, dropDatabase almost everything (I guess)
Including
mongoose.connection.dropDatabase(() => {})
User.remove({…
![](../../users/profiles/5677908.webp)
Rachomir
- 240
- 2
- 14
0
votes
2 answers
chimp.js configuration - the browser is not opening localhost
I am having problem with chimp.js configuration. When I run tests the browser is not using provided host / post. I tried many things but without success. Does anyone know how to set up it properly? Please find my config in screenshot provided.
![](../../users/profiles/5677908.webp)
Rachomir
- 240
- 2
- 14
0
votes
2 answers
How to release keys in webdriverIO
The webdriverIO docs say that the browser.keys command works like the sendKeys command, but it doesn't implicitly release the keys.
http://webdriver.io/api/protocol/keys.html
How are the keys released?
I tried writing code to navigate backwards…
![](../../users/profiles/3284046.webp)
albertlockett
- 185
- 1
- 12
0
votes
1 answer
Ho to set acceptInsecureCerts for Firefox in Chimp.js framework?
I'm automating a website and sometimes it uses an ip address as url, that ip address generates a connection is not secure message in Firefox. Researching online I found out that for Firefox, the default in chimp is acceptInsecureCerts = False. That…
![](../../users/profiles/7207269.webp)
Thiago Costa
- 33
- 4
0
votes
1 answer
How to organize webdriver and chimp tests
I have a lot of acceptance test suites using chimp, webdriver, and mocha for my meteor project. I need them to run in a specific order, as some are dependent on others. I was able to do this in a shell script, that calls
chimp --mocha…
![](../../users/profiles/5889460.webp)
Tamandua
- 1
- 2
0
votes
1 answer
Mocha reporter does not seem to be taken into account when tests ran by chimp
I have a very simple project that contains a package.json with this:
{
"scripts": {
"acceptance": "chimp --mocha --mochaReporter=mocha-junit-reporter --chai --browser=chrome --path=src/spec/acceptance/**"
},
"devDependencies": {
…
![](../../users/profiles/866172.webp)
Jalayn
- 7,684
- 4
- 33
- 48
0
votes
1 answer
Need advice about testing using Chimp.js/Mocha in Meteor.js
I'm trying to teach myself testing with Meteor but there is so much conflicting and outdated info online it's really difficult to work out what I need to do.
My current situation it that I have an application using the latest Meteor version (and the…
![](../../users/profiles/2484643.webp)
Sean
- 2,394
- 11
- 30
0
votes
2 answers
How to iterate through a list of JSON elements and access their attributes using webdriverio?
[Using Chimp.js – Synchronous style webdriverio API]
How can I properly iterate through my array of elements?
Or, more specifically, how do I access the attributes of the elements themselves? I'm confused as to the .elements() function found in the…
![](../../users/profiles/6068055.webp)
Peter
- 77
- 9
0
votes
1 answer
Chimp timing out while running in docker container
I am getting the error within a docker container using xvfb and chrome:
node_modules/chimp/dist/lib/cucumberjs/hooks.js:19 function timed out after 60000 milliseconds
full log: http://pastebin.com/7yHq28dT
It runs fine locally, but i can't seem to…
![](../../users/profiles/1110924.webp)
fugufish
- 26
- 3
0
votes
1 answer
How can I configure Chimp to open a browser with given width and height?
Recently I started with Chimp and my test suite is growing. I want to implement a feature that I need to run on a mobile viewport specifically (e.g. to test Hamburger menu). I tag such a scenario with the @mobile tag.
Chimp is by default running in…
![](../../users/profiles/1602893.webp)
Maarten Kuijpers
- 25
- 1
- 6
0
votes
1 answer
Can't click an ion-side-menu button in Chimp acceptance test
I'm trying to write an acceptance test that logs the user out by opening the side menu and clicking on the Logout button. Chimp is complaining, Uncaught Error: element not visible. Here's my test:
it('user can log out @watch', function() {
…
![](../../users/profiles/756177.webp)
ABCD.ca
- 2,105
- 3
- 28
- 24
0
votes
1 answer
Running chrome in --no-sandbox mode using chimp.js
Is there a way to tell chimp to run chrome outside the sandbox while using chimp + mocha + selenium?
I read in their website that most of the configuration can be done through the command line, but I was unable to find a list of possible arguments…
![](../../users/profiles/5275619.webp)
Jean Alesi
- 167
- 2
- 15
0
votes
2 answers
Meteor acceptance testing with Chimp always gives error
I am following the below example to see how acceptance tests are implemented in Meteor
http://www.mhurwi.com/tutorial-test-driven-development-with-meteor-cucumber-chimp/
Below are the steps that i have tried
Install Chimp globally i.e. npm install…
![](../../users/profiles/1114566.webp)
Adi
- 127
- 2
- 14
0
votes
1 answer
Make chimp execution fail if running 0 tests
Long story short, I have a meteor app passing in a continuous-integration pipeline which runs every tests before deploying. My tests run with chimp and I was installing chimp globally on my CI environment in each build with the latest version before…
![](../../users/profiles/2123835.webp)
Xavier Huppé
- 494
- 1
- 4
- 15
0
votes
1 answer
Trying to drag an element to an element that is inside of an iFrame (using Webdriver-io)?
I am currently using Webdriver IO, Chimp JS and Cucumber JS, and I'm having a bit of a hard time dragging an element to another element that's inside of an iframe. I've been able to locate the element I want to move, as well as the element in the…
![](../../users/profiles/1322833.webp)
Nagoshi
- 131
- 5