Commit edd4781d by raeeschachar

Merge pull request #10975 from edx/raees/chrome-bok-choy-test-toggle-by-clicking-note

Fixed toggle by clicking on the note failing on Chrome
parents 65ec8538 f3b2e38a
...@@ -480,6 +480,7 @@ class EdxNoteHighlight(NoteChild): ...@@ -480,6 +480,7 @@ class EdxNoteHighlight(NoteChild):
ADDER_SELECTOR = ".annotator-adder" ADDER_SELECTOR = ".annotator-adder"
VIEWER_SELECTOR = ".annotator-viewer" VIEWER_SELECTOR = ".annotator-viewer"
EDITOR_SELECTOR = ".annotator-editor" EDITOR_SELECTOR = ".annotator-editor"
NOTE_SELECTOR = ".annotator-note"
def __init__(self, browser, element, parent_id): def __init__(self, browser, element, parent_id):
super(EdxNoteHighlight, self).__init__(browser, parent_id) super(EdxNoteHighlight, self).__init__(browser, parent_id)
...@@ -548,7 +549,7 @@ class EdxNoteHighlight(NoteChild): ...@@ -548,7 +549,7 @@ class EdxNoteHighlight(NoteChild):
""" """
Clicks on the note viewer. Clicks on the note viewer.
""" """
self.q(css=self._bounded_selector(self.VIEWER_SELECTOR)).first.click() self.q(css=self.NOTE_SELECTOR).first.click()
return self return self
def show(self): def show(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment