Esempio n. 1
0
    def test_submitting_same_feedback_twice(self, mozwebqa):
        """This testcase covers # 15119 in Litmus.

        1. Verifies feedback submission fails if the same feedback is submitted within a 5 minute window.

        """
        text = 'I submit this feedback twice within a five minute window and it should fail.'

        from pages.desktop.submit_happy_feedback import SubmitHappyFeedbackPage
        submit_happy_feedback_pg = SubmitHappyFeedbackPage(mozwebqa)

        submit_happy_feedback_pg.go_to_submit_happy_feedback_page()
        submit_happy_feedback_pg.type_feedback(text)
        thanks_pg = submit_happy_feedback_pg.submit_feedback()
        Assert.true(thanks_pg.is_the_current_page)

        submit_happy_feedback_pg.go_to_submit_happy_feedback_page()
        submit_happy_feedback_pg.type_feedback(text)
        submit_happy_feedback_pg.submit_feedback()
        Assert.equal(submit_happy_feedback_pg.error_message, 'We already got your feedback! Thanks.')
Esempio n. 2
0
    def test_submitting_same_feedback_twice(self, mozwebqa):
        """This testcase covers # 15119 in Litmus.

        1. Verifies feedback submission fails if the same feedback is submitted within a 5 minute window.

        """
        text = 'I submit this feedback twice within a five minute window and it should fail.'

        from pages.desktop.submit_happy_feedback import SubmitHappyFeedbackPage
        submit_happy_feedback_pg = SubmitHappyFeedbackPage(mozwebqa)

        submit_happy_feedback_pg.go_to_submit_happy_feedback_page()
        submit_happy_feedback_pg.type_feedback(text)
        thanks_pg = submit_happy_feedback_pg.submit_feedback()
        Assert.true(thanks_pg.is_the_current_page)

        submit_happy_feedback_pg.go_to_submit_happy_feedback_page()
        submit_happy_feedback_pg.type_feedback(text)
        submit_happy_feedback_pg.submit_feedback()
        Assert.equal(submit_happy_feedback_pg.error_message,
                     'We already got your feedback! Thanks.')
Esempio n. 3
0
    def test_submitting_feedback_with_unicode_characters(self, mozwebqa):
        """This testcase covers # 15061 in Litmus.

        1. Verifies the thank you page is loaded

        """
        from pages.desktop.submit_happy_feedback import SubmitHappyFeedbackPage
        submit_happy_feedback_pg = SubmitHappyFeedbackPage(mozwebqa)

        submit_happy_feedback_pg.go_to_submit_happy_feedback_page()
        submit_happy_feedback_pg.type_feedback(u'It made my \u2603 come alive!')
        thanks_pg = submit_happy_feedback_pg.submit_feedback()
        Assert.true(thanks_pg.is_the_current_page)
Esempio n. 4
0
    def test_submitting_feedback_with_unicode_characters(self, mozwebqa):
        """This testcase covers # 15061 in Litmus.

        1. Verifies the thank you page is loaded

        """
        from pages.desktop.submit_happy_feedback import SubmitHappyFeedbackPage
        submit_happy_feedback_pg = SubmitHappyFeedbackPage(mozwebqa)

        submit_happy_feedback_pg.go_to_submit_happy_feedback_page()
        submit_happy_feedback_pg.type_feedback(
            u'It made my \u2603 come alive!')
        thanks_pg = submit_happy_feedback_pg.submit_feedback()
        Assert.true(thanks_pg.is_the_current_page)