Fixed toggle cheatsheet not working on component editors.
STUD-1514
This commit is contained in:
@@ -113,6 +113,11 @@ Feature: CMS.Problem Editor
|
||||
And I unpublish the unit
|
||||
Then I can edit the problem
|
||||
|
||||
Scenario: Cheat sheet visible on toggle
|
||||
Given I have created a Blank Common Problem
|
||||
And I can edit the problem
|
||||
Then I can see cheatsheet
|
||||
|
||||
# Disabled 11/13/2013 after failing in master
|
||||
# The screenshot showed that the LaTeX editor had the text "hi",
|
||||
# but Selenium timed out waiting for the text to appear.
|
||||
|
||||
@@ -250,6 +250,13 @@ def i_can_edit_problem(_step):
|
||||
world.edit_component()
|
||||
|
||||
|
||||
@step(u'I can see cheatsheet$')
|
||||
def verify_cheat_sheet_displaying(_step):
|
||||
world.css_click("a.cheatsheet-toggle")
|
||||
css_selector = 'article.simple-editor-cheatsheet'
|
||||
world.wait_for_visible(css_selector)
|
||||
|
||||
|
||||
def verify_high_level_source_links(step, visible):
|
||||
if visible:
|
||||
assert_true(world.is_css_present('.launch-latex-compiler'),
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
|
||||
// large modals - component editors and interactives
|
||||
.modal-lg {
|
||||
width: 75%;
|
||||
width: 70%;
|
||||
min-width: ($baseline*27.5);
|
||||
height: auto;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user