Commit f454e10e by polesye

Add fixes.

parent f0492b3b
......@@ -73,7 +73,7 @@ function (Iterator) {
expect(iterator.prev()).toBe('d');
});
it('returns previous item if index equal first item', function () {
it('returns last item if index equal first item', function () {
expect(iterator.prev()).toBe('e');
});
});
......
......@@ -34,7 +34,7 @@ function() {
* @desc Returns next element.
*
* @param {number} index If set, updates current index of iterator.
* @returns {DOM element}
* @returns {any}
*
*/
next: function (index) {
......@@ -51,7 +51,7 @@ function() {
* @desc Returns previous element.
*
* @param {number} index If set, updates current index of iterator.
* @returns {DOM element}
* @returns {any}
*
*/
prev: function (index) {
......@@ -67,7 +67,7 @@ function() {
/**
* @desc Returns last element in the list.
*
* @returns {DOM element}
* @returns {any}
*
*/
last: function () {
......@@ -77,7 +77,7 @@ function() {
/**
* @desc Returns first element in the list.
*
* @returns {DOM element}
* @returns {any}
*
*/
first: function () {
......
......@@ -397,7 +397,6 @@ def video_is_rendered(_step, mode):
}
html_tag = modes[mode.lower()]
assert world.css_find('.video {0}'.format(html_tag)).first
assert world.is_css_present('.speed-link')
@step('videos have rendered in "([^"]*)" mode$')
......@@ -412,7 +411,6 @@ def videos_are_rendered(_step, mode):
actual = len(world.css_find('.video {0}'.format(html_tag)))
expected = len(world.css_find('.xmodule_VideoModule'))
assert actual == expected
assert world.is_css_present('.speed-link')
@step('all sources are correct$')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment