Revert "set path explicitly for storing cookie"
This commit is contained in:
@@ -98,7 +98,7 @@ define(
|
||||
file: file,
|
||||
date: moment().valueOf(),
|
||||
completed: completed || false
|
||||
}), {path: window.location.pathname});
|
||||
}));
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,12 +20,6 @@ class StudioCourseTest(UniqueCourseTest):
|
||||
Install a course with no content using a fixture.
|
||||
"""
|
||||
super(StudioCourseTest, self).setUp()
|
||||
self.install_course_fixture(is_staff)
|
||||
|
||||
def install_course_fixture(self, is_staff=False):
|
||||
"""
|
||||
Install a course fixture
|
||||
"""
|
||||
self.course_fixture = CourseFixture(
|
||||
self.course_info['org'],
|
||||
self.course_info['number'],
|
||||
|
||||
@@ -364,34 +364,6 @@ class TestCourseImport(ImportTestMixin, StudioCourseTest):
|
||||
"""
|
||||
self.assertEqual(self.import_page.header_text, 'Course Import')
|
||||
|
||||
def test_multiple_course_import_message(self):
|
||||
"""
|
||||
Given that I visit an empty course before import
|
||||
When I visit the import page
|
||||
And I upload a course with file name 2015.lzdwNM.tar.gz
|
||||
Then timestamp is visible after course is updated successfully
|
||||
And then I create a new course
|
||||
When I visit the import page of this new course
|
||||
Then timestamp is not visible
|
||||
"""
|
||||
self.import_page.visit()
|
||||
self.import_page.upload_tarball(self.tarball_name)
|
||||
self.import_page.wait_for_upload()
|
||||
self.assertTrue(self.import_page.is_timestamp_visible())
|
||||
|
||||
# Create a new course and visit the import page
|
||||
self.course_info = {
|
||||
'org': 'test_org_2',
|
||||
'number': self.unique_id + '_2',
|
||||
'run': 'test_run_2',
|
||||
'display_name': 'Test Course 2' + self.unique_id
|
||||
}
|
||||
self.install_course_fixture()
|
||||
self.import_page = self.import_page_class(*self.page_args())
|
||||
self.import_page.visit()
|
||||
# As this is new course which is never import so timestamp should not present
|
||||
self.assertFalse(self.import_page.is_timestamp_visible())
|
||||
|
||||
|
||||
@attr('shard_4')
|
||||
class TestLibraryImport(ImportTestMixin, StudioLibraryTest):
|
||||
|
||||
Reference in New Issue
Block a user