Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('todomvc', function () {
- beforeEach(function () {
- browser().navigateTo('../app/index.html');
- });
- afterEach(function() {
- localStorage.clear();
- });
- describe('localstorage behavior', function() {
- it('should load with zero items in localstorage', function() {
- expect(repeater('#todo-list li').count()).toEqual(0);
- input('newTodo').enter('Foo Bar');
- expect(repeater('#todo-list li').count()).toEqual(1);
- });
- });
- });
- basePath = '../';
- files = [
- ANGULAR_SCENARIO,
- ANGULAR_SCENARIO_ADAPTER,
- 'test/e2e/**/*.js'
- ];
- autoWatch = false;
- browsers = ['Chrome'];
- //singleRun = true;
- proxies = {
- '/': 'http://localhost:8000/'
- };
- junitReporter = {
- outputFile: 'test_out/e2e.xml',
- suite: 'e2e'
- };
- <form class="myForm">
- element(':form.myForm').submit();
- describe('localstorage behavior', function() {
- it('should load with zero items in localstorage', function() {
- var e = jQuery.Event("keydown", {
- keyCode: 13
- });
- expect(repeater('#todo-list li').count()).toEqual(0);
- input('newTodo').enter('Foo Bar');
- element = angular.element('<input name="mytext" type="text" ng-model="mytext">');
- element = compile(element)(scope);
- element.trigger(e);
- scope.$digest();
- expect(repeater('#todo-list li').count()).toEqual(1);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement