Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 11493dad07
Fetching contributors…

Cannot retrieve contributors at this time

file 27 lines (16 sloc) 0.922 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/usr/bin/env python

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from manage_cases_page import MozTrapManageCasesPage
from base_test import BaseTest
from unittestzero import Assert


class TestManageCasesPage(BaseTest):

    def test_that_user_can_create_and_delete_case(self, mozwebqa_logged_in):
        manage_cases_pg = MozTrapManageCasesPage(mozwebqa_logged_in)

        case = self.create_case(mozwebqa_logged_in)

        manage_cases_pg.filter_cases_by_name(name=case['name'])

        Assert.true(manage_cases_pg.is_element_present(case['locator']))

        manage_cases_pg.delete_case(name=case['name'])

        Assert.false(manage_cases_pg.is_element_present(case['locator']))

        self.delete_product(mozwebqa_logged_in, product=case['product'])
Something went wrong with that request. Please try again.