move dialog
TNL-6047
This commit is contained in:
committed by
Mushtaq Ali
parent
52f8c9763a
commit
1b011af7e2
@@ -129,8 +129,8 @@ def edit_component(index=0):
|
||||
# Verify that the "loading" indication has been hidden.
|
||||
world.wait_for_loading()
|
||||
# Verify that the "edit" button is present.
|
||||
world.wait_for(lambda _driver: world.css_visible('a.edit-button'))
|
||||
world.css_click('a.edit-button', index)
|
||||
world.wait_for(lambda _driver: world.css_visible('.edit-button'))
|
||||
world.css_click('.edit-button', index)
|
||||
world.wait_for_ajax_complete()
|
||||
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ def not_see_any_static_pages(step):
|
||||
|
||||
@step(u'I "(edit|delete)" the static page$')
|
||||
def click_edit_or_delete(step, edit_or_delete):
|
||||
button_css = 'ul.component-actions a.%s-button' % edit_or_delete
|
||||
button_css = 'ul.component-actions .%s-button' % edit_or_delete
|
||||
world.css_click(button_css)
|
||||
|
||||
|
||||
|
||||
@@ -54,9 +54,10 @@ class StudioPageTestCase(CourseTestCase):
|
||||
|
||||
# Verify that there are no action buttons for public blocks
|
||||
expected_button_html = [
|
||||
'<a href="#" class="edit-button action-button">',
|
||||
'<a href="#" data-tooltip="Delete" class="delete-button action-button">',
|
||||
'<a href="#" data-tooltip="Duplicate" class="duplicate-button action-button">'
|
||||
'<button class="btn-default edit-button action-button">',
|
||||
'<button data-tooltip="Delete" class="btn-default delete-button action-button">',
|
||||
'<button data-tooltip="Duplicate" class="btn-default duplicate-button action-button">',
|
||||
'<button data-tooltip="Move" class="btn-default move-button action-button">'
|
||||
]
|
||||
for button_html in expected_button_html:
|
||||
self.assertIn(button_html, html)
|
||||
|
||||
Reference in New Issue
Block a user