From 8a1ec3e6909d899e6bac00e1976eb616bd10eeea Mon Sep 17 00:00:00 2001 From: muhammad-ammar Date: Fri, 3 Feb 2017 20:26:07 +0500 Subject: [PATCH] bokchoy tests for move xblocks --- cms/static/js/views/move_xblock_breadcrumb.js | 6 +- cms/templates/js/move-xblock-list.underscore | 2 +- .../test/acceptance/pages/studio/container.py | 55 ++++++- .../acceptance/pages/studio/move_xblock.py | 78 ++++++++++ .../tests/studio/test_studio_container.py | 134 ++++++++++++++++++ 5 files changed, 267 insertions(+), 8 deletions(-) create mode 100644 common/test/acceptance/pages/studio/move_xblock.py diff --git a/cms/static/js/views/move_xblock_breadcrumb.js b/cms/static/js/views/move_xblock_breadcrumb.js index 2d891b3c5c..d4f5b90d00 100644 --- a/cms/static/js/views/move_xblock_breadcrumb.js +++ b/cms/static/js/views/move_xblock_breadcrumb.js @@ -13,10 +13,6 @@ function($, Backbone, _, gettext, HtmlUtils, StringUtils, MoveXBlockBreadcrumbVi var MoveXBlockBreadcrumb = Backbone.View.extend({ el: '.breadcrumb-container', - defaultRenderOptions: { - breadcrumbs: ['Course Outline'] - }, - events: { 'click .parent-nav-button': 'handleBreadcrumbButtonPress' }, @@ -29,7 +25,7 @@ function($, Backbone, _, gettext, HtmlUtils, StringUtils, MoveXBlockBreadcrumbVi render: function(options) { HtmlUtils.setHtml( this.$el, - this.template(_.extend({}, this.defaultRenderOptions, options)) + this.template(options) ); Backbone.trigger('move:breadcrumbRendered'); return this; diff --git a/cms/templates/js/move-xblock-list.underscore b/cms/templates/js/move-xblock-list.underscore index 5dcc222674..eb51eae41d 100644 --- a/cms/templates/js/move-xblock-list.underscore +++ b/cms/templates/js/move-xblock-list.underscore @@ -13,7 +13,7 @@ <%- categoryText %>: -