A specific test case or condition for AngularJS.
Questions tagged [angular-scenario]
32 questions
31
votes
1 answer
angular-scenario e2e testing - waiting for key events to complete before proceeding
How are people writing angular e2e tests that involve triggering a sequence of UI events? The async nature of scenario seems to make it difficult.
details:
I'm writing tests for an app that has a lot of key handling to help speed editing of a…

hemul
- 311
- 2
- 3
9
votes
2 answers
Is it possible to mix Testacular (Karma) with angular-scenario?
Testacular (now Karma) is awesome, so is angular-scenario. Using them together is proving a challenge however. There is an ANGULAR-SCENARIO-ADAPTER in Testacular, but that breaks simple tests. If you include angular-scenario.js yourself Testacular…

iwein
- 25,788
- 10
- 70
- 111
7
votes
3 answers
How to use angular-scenario with requirejs
Angular-scenario works well when your angular app is ready on DOM ready. Is not the case when using requirejs or an other AMD lib. How to add support for AMD in angular-scenario?

Francis
- 3,335
- 20
- 46
4
votes
0 answers
Subsequent variable declarations must have the same type. Variable 'angular' must be of type 'IAngularStatic', but here has type 'IAngularStatic'
Error happens while I try to get definitions via tsd from DefinitelyTyped Repo.
Subsequent variable declarations must have the same type. Variable
'angular' must be of type 'IAngularStatic', but here has type
'IAngularStatic'
When I google…

asdf_enel_hak
- 7,474
- 5
- 42
- 84
2
votes
1 answer
Scope variables undefined when testing controller with Karma and Jasmine with ng-scenario as framework
I've just started to discover angular unit testing mysteries using Karma & Jasmine and I have some problems with controllers tests. I've wrote tests to see if variables are defined: expect(scope.someVariable).toBeDefined(). Everything worked as…

Cosmin
- 2,184
- 21
- 38
2
votes
1 answer
Karma, the test doesn't run
this is what my karma code looks like ..
describe('E2E: Testing Controllers', function() {
beforeEach(function() {
browser().navigateTo('/dashboard/');
});
it('should have a working home page controller that applies the leads to scope',…

Yousuf Jawwad
- 3,037
- 7
- 33
- 60
2
votes
1 answer
How to use Angular Scenario Runner to run a subset of the test suite?
I am developing an application based on TDD.
For the server-side everything is fine as Python test runner are great.
For JS, I start using mocha which is also great.
I have wrote my first tests with Karma and Angular Scenario Runner and it also…

Adi Roiban
- 1,293
- 2
- 13
- 28
2
votes
1 answer
AngularJS scenarios expect class and futures
I'm trying to write a test that checks whether or not an element has a class:
element('#header-menu .menu-component-item a').query(function(els, done) {
var el = els.eq(4);
el.click();
sleep(.25);
…

Ahmed Nuaman
- 12,662
- 15
- 55
- 87
2
votes
1 answer
Angularjs e2e testing past/future comparisons
I'm currently trying to figure out if there is a way to do a simple future/past comparison ex.
1) Check state of list by getting list length
2) Perform action which if success increments the list
3) Compare the current list length to the past.
But…

Hampus Ahlgren
- 519
- 1
- 5
- 15
1
vote
2 answers
Angular Scenario Runner vs Protractor
Am I correct in saying that Protractor must have the Protractor/Selenium Webdriver installed on the machine where the tests are being run but Angular Scenario runner executes within the browser?
I would essentially love to be able to run…

Mark Gargan
- 831
- 1
- 9
- 21
1
vote
1 answer
Angular Karma e2e with Grunt
I am trying to test
In the grunt file
karma: {
e2e: {
configFile: 'karma-e2e.conf.js',
singleRun: true
}
},
Karma file is basically what Yeoman generated for me. Only change is I swithed Chrome for PhantomJS.
karma-e2e.conf.js:
//…

pethel
- 5,397
- 12
- 55
- 86
1
vote
1 answer
Why was Protractor chosen over angular-scenario?
What is the added value of Protractor over angular-scenario ? I tried to find out why was angular-scenario on the deprecation path, I have read this post, and watched this video
, but I am still unsatisfied by the fact there are no obvious advantage…

bdavidxyz
- 2,492
- 1
- 20
- 40
1
vote
2 answers
Angularjs e2e testing with scenario test runner - ignore alert()
I'm creating the e2e test for my application and I have a problem when I'm testing the login page.
I want to test both the correct login and the incorrect one but the problem is that when you enter incorrect credentials you get an alert("Your email…

Adrian Neatu
- 1,989
- 2
- 19
- 34
1
vote
1 answer
Trouble with Karma + AngularJS Scenario Test Runner and a form
Ok, I'm having issues with my Test Runner where it is filling out the fields on the form but when I then submit the forms it refers to these fields as blank.
If I write to the field using element('some_element).val('some_val') this works fine.
If I…

roadkill247
- 213
- 1
- 5
- 12
1
vote
1 answer
Problems implementing e2e test with AngularJS scenario and redi
I'm starting to write e2e tests in my django app using angular-scenario and i've been blocked since the very begining.
I've opened a way in my app to fake user login so I can start testing the application features but I can't get it to work. This…

olmaygti
- 33
- 5