def test_create_with_long_field(self): HomePage().header.click_create_btn() long_summary = randomString(256) error = CreateIssuePopup().set_project("Webinar") \ .set_issue_type("Story") \ .set_summary(long_summary) \ .click_submit_btn().get_error() assert error.__contains__("Summary must be less than 255 characters.")
def test_update_summary(self, create_issue): IssuePage().click_edit_btn() CreateIssuePopup() \ .set_summary("upd") \ .click_update_btn() summary = IssuePage().get_summary() assert summary.__contains__("upd")
def test_update_assignee(self, create_issue): IssuePage().click_edit_btn() CreateIssuePopup() \ .set_assignee("DmytroKarpenko") \ .click_update_btn() assignee = IssuePage().get_assignee() assert assignee.__contains__("DmytroKarpenko")
def test_update_priority(self, create_issue): IssuePage().click_edit_btn() CreateIssuePopup() \ .set_priority("Low") \ .click_update_btn() priority = IssuePage().get_priority() assert priority.__contains__("Low")
def create_issue(self, summary): Header().click_create_btn() CreateIssuePopup().set_project("Webinar") \ .set_issue_type("Story") \ .set_summary(summary) \ .click_submit_btn()
def create_issue(self): HomePage().header.click_create_btn() CreateIssuePopup().set_project("Webinar") \ .set_issue_type("Story") \ .set_summary("My issue") \ .click_submit_btn() HomePage().notification.open_issue()
def test_create_with_missing_field(self): HomePage().header.click_create_btn() error = CreateIssuePopup().set_project("Webinar") \ .set_issue_type("Story") \ .click_submit_btn().get_error() assert error.__contains__("You must specify a summary of the issue.")