Fixed toggle cheatsheet not working on component editors.

STUD-1514
This commit is contained in:
Waheed Ahmed
2014-04-16 17:06:16 +05:00
parent 97d587c4c8
commit df96c17e65
6 changed files with 20 additions and 7 deletions

View File

@@ -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.

View File

@@ -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'),

View File

@@ -107,7 +107,7 @@
// large modals - component editors and interactives
.modal-lg {
width: 75%;
width: 70%;
min-width: ($baseline*27.5);
height: auto;