Remove wordcloud related tests.
This commit is contained in:
@@ -8,7 +8,6 @@ import json
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
import ddt
|
||||
import six
|
||||
from six.moves import range
|
||||
|
||||
from openedx.core.lib.tests import attr
|
||||
@@ -867,76 +866,3 @@ class CompletionTestCase(UniqueCourseTest, EventsTestMixin):
|
||||
# Auto-auth register for the course.
|
||||
AutoAuthPage(self.browser, username=self.USERNAME, email=self.EMAIL,
|
||||
course_id=self.course_id, staff=False).visit()
|
||||
|
||||
|
||||
@attr(shard=9)
|
||||
class WordCloudTests(UniqueCourseTest):
|
||||
"""
|
||||
Tests the Word Cloud.
|
||||
"""
|
||||
USERNAME = "STUDENT_TESTER"
|
||||
EMAIL = "student101@example.com"
|
||||
|
||||
def setUp(self):
|
||||
super(WordCloudTests, self).setUp()
|
||||
|
||||
self.courseware_page = CoursewarePage(self.browser, self.course_id)
|
||||
|
||||
self.studio_course_outline = StudioCourseOutlinePage(
|
||||
self.browser,
|
||||
self.course_info['org'],
|
||||
self.course_info['number'],
|
||||
self.course_info['run']
|
||||
)
|
||||
|
||||
# Install a course
|
||||
course_fix = CourseFixture(
|
||||
self.course_info['org'], self.course_info['number'],
|
||||
self.course_info['run'], self.course_info['display_name']
|
||||
)
|
||||
# Set word cloud value against advanced modules in advanced settings
|
||||
course_fix.add_advanced_settings({
|
||||
"advanced_modules": {"value": ["word_cloud"]},
|
||||
})
|
||||
|
||||
course_fix.add_children(
|
||||
XBlockFixtureDesc('chapter', 'Test Section 1').add_children(
|
||||
XBlockFixtureDesc('sequential', 'Test Subsection 1').add_children(
|
||||
XBlockFixtureDesc('vertical', 'Test Unit').add_children(
|
||||
XBlockFixtureDesc(
|
||||
'word_cloud', 'advanced WORDCLOUD'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
).install()
|
||||
|
||||
auto_auth(self.browser, self.USERNAME, self.EMAIL, False, self.course_id)
|
||||
self.courseware_page.visit()
|
||||
|
||||
def test_word_cloud_is_rendered_with_empty_result(self):
|
||||
"""
|
||||
Scenario: Word Cloud component in LMS is rendered with empty result
|
||||
Given the course has a Word Cloud component
|
||||
Then I view the word cloud and it has rendered
|
||||
When I press the Save button
|
||||
Then I see the empty result
|
||||
"""
|
||||
self.assertTrue(self.courseware_page.is_word_cloud_rendered)
|
||||
self.courseware_page.save_word_cloud()
|
||||
self.assertEqual(self.courseware_page.word_cloud_answer_list, '')
|
||||
|
||||
def test_word_cloud_is_rendered_with_result(self):
|
||||
"""
|
||||
Scenario: Word Cloud component in LMS is rendered with result
|
||||
Given the course has a Word Cloud component
|
||||
Then I view the word cloud and it has rendered
|
||||
When I fill inputs
|
||||
And I press the Save button
|
||||
Then I see the result with words count
|
||||
"""
|
||||
expected_data = ['test_wordcloud1', 'test_wordcloud2', 'test_wordcloud3', 'test_wordcloud4', 'test_wordcloud5']
|
||||
self.assertTrue(self.courseware_page.is_word_cloud_rendered)
|
||||
self.courseware_page.input_word_cloud('test_wordcloud')
|
||||
self.courseware_page.save_word_cloud()
|
||||
six.assertCountEqual(self, expected_data, self.courseware_page.word_cloud_answer_list)
|
||||
|
||||
Reference in New Issue
Block a user