Commit c25cdbad by Jhony Avella

Removing references to deleted module common.test.acceptance.pages.lms.rubric

parent 6e7d4cef
...@@ -5,7 +5,6 @@ Page that allows the student to grade calibration essays ...@@ -5,7 +5,6 @@ Page that allows the student to grade calibration essays
from bok_choy.page_object import PageObject from bok_choy.page_object import PageObject
from bok_choy.promise import Promise from bok_choy.promise import Promise
from .rubric import RubricPage
class PeerCalibratePage(PageObject): class PeerCalibratePage(PageObject):
...@@ -33,16 +32,6 @@ class PeerCalibratePage(PageObject): ...@@ -33,16 +32,6 @@ class PeerCalibratePage(PageObject):
self.q(css='input.calibration-feedback-button').first.click() self.q(css='input.calibration-feedback-button').first.click()
@property @property
def rubric(self):
"""
Return a `RubricPage` for the calibration essay.
If no rubric is available, raises a `BrokenPromise` exception.
"""
rubric = RubricPage(self.browser)
rubric.wait_for_page(timeout=60)
return rubric
@property
def message(self): def message(self):
""" """
Return a message shown to the user, or None if no message is available. Return a message shown to the user, or None if no message is available.
......
...@@ -4,7 +4,6 @@ Students grade peer submissions. ...@@ -4,7 +4,6 @@ Students grade peer submissions.
from bok_choy.page_object import PageObject from bok_choy.page_object import PageObject
from bok_choy.promise import Promise from bok_choy.promise import Promise
from .rubric import RubricPage
class PeerGradePage(PageObject): class PeerGradePage(PageObject):
...@@ -37,13 +36,3 @@ class PeerGradePage(PageObject): ...@@ -37,13 +36,3 @@ class PeerGradePage(PageObject):
""" """
index = self.problem_list.index(problem_name) + 1 index = self.problem_list.index(problem_name) + 1
self.q(css='a.problem-button:nth-of-type({})'.format(index)).first.click() self.q(css='a.problem-button:nth-of-type({})'.format(index)).first.click()
@property
def rubric(self):
"""
Return a `RubricPage` to allow students to grade their peers.
If no rubric is available, raises a `BrokenPromise` exception.
"""
rubric = RubricPage(self.browser)
rubric.wait_for_page()
return rubric
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