Skip to content

Commit

Permalink
feat: unskipped 13.01.10, 13.01.16, 13_01_16_01, 13.01.17. 13.01.18, …
Browse files Browse the repository at this point in the history
…13.01.19, 13.01.20, 13.01.44, 13.01.50, 13.02.02

update test_main_page.py
  • Loading branch information
alena-krauchuk committed Sep 30, 2023
1 parent c88039b commit 0dcca98
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/test_main_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def test_tc_13_01_01_check_promo_block_display(self, driver):
assert page.element_is_visible(self.locators.PROMO_BLOCK), \
"Promo Block under header is invisible on the Main Page"


@allure.title("TC 13.01.02 - Check the display of Section 1 in the Promo Block")
def test_tc_13_01_02_check_section1_display(self, driver):
"""This test checks if Section 1 in Promo Block under header is displayed on the Main Page"""
Expand Down Expand Up @@ -193,7 +192,6 @@ def test_tc_13_01_09_check_section2_display(self, driver):
assert page.element_is_visible(self.locators.SECTION_2), \
"Section 2 under header is invisible on the Main Page"

@pytest.mark.skip(reason="In CI, there is no this element in changing section 2 now, so the test is skipped")
@allure.title("TC 13.01.10 - Check display of block 1 'home-pants' in section 2 in the Promo Block")
def test_tc_13_01_10_check_section2_block1_display(self, driver):
"""This test checks if block 1 'home-pants' is displayed in section 2 of Promo Block under header
Expand Down Expand Up @@ -239,7 +237,6 @@ def test_tc_13_01_14_check_section2_block5_display(self, driver):
assert page.element_is_visible(self.locators.SECTION_2_BLOCK_5), \
"Block 5 in Section 2 under header is invisible on the Main Page"

@pytest.mark.skip(reason="In CI, there is no this element in changing section 2 now, so the test is skipped")
@allure.title("TC 13.01.16 - Check the display of an image in block 1 'home-pants' in the Promo Block")
def test_tc_13_01_16_check_image_visibility_in_section2_block1(self, driver):
"""This test checks if the image in section 2 block 1 'home-pants' is visible"""
Expand All @@ -248,7 +245,6 @@ def test_tc_13_01_16_check_image_visibility_in_section2_block1(self, driver):
block1_image = page.find_element(self.locators.SECTION_2_BLOCK_1_IMAGE)
assert page.check_element_image_is_visible(block1_image), "The image in section 2 block 1 is invisible"

@pytest.mark.skip(reason="In CI, there is no this element in changing section 2 now, so the test is skipped")
@allure.title("TC 13.01.16_01 - Check correctness of the image in block 1 'home-pants' in the Promo Block")
def test_tc_13_01_16_01_check_image_correctness_in_section2_block1(self, driver):
"""This test checks if the image in section 2 block 1 'home-pants' is correct"""
Expand All @@ -258,7 +254,6 @@ def test_tc_13_01_16_01_check_image_correctness_in_section2_block1(self, driver)
block1_image_url = ImageUrls.SECTION_2_BLOCK_1_IMAGE_URL
assert page.check_image_src(block1_image) == block1_image_url, "The image in section 2 block 1 is incorrect"

@pytest.mark.skip(reason="In CI, there is no this element in changing section 2 now, so the test is skipped")
@allure.title("TC 13.01.17 - Check the display of the info block in block 1 'home-pants' in the Promo Block")
def test_tc_13_01_17_check_info_block_in_section2_block1(self, driver):
"""This test checks if info block in section 2 block 1 'home-pants' is displayed"""
Expand All @@ -267,7 +262,6 @@ def test_tc_13_01_17_check_info_block_in_section2_block1(self, driver):
assert page.element_is_visible(self.locators.SECTION_2_BLOCK_1_INFO_BLOCK), \
"The info block in section 2 block 1 under header is invisible on the Main Page"

@pytest.mark.skip(reason="In CI, there is no this element in changing section 2 now, so the test is skipped")
@allure.title("TC 13.01.18 - Check the display of the title in block 1 'home-pants' in the Promo Block")
def test_tc_13_01_18_check_info_block_title_in_section2_block1(self, driver):
"""This test checks if the info block title in section 2 block 1 'home-pants' is correct
Expand All @@ -279,7 +273,6 @@ def test_tc_13_01_18_check_info_block_title_in_section2_block1(self, driver):
assert actual_text == expected_text, f"Actual title '{actual_text}' of info block in section 2 block 1 " \
f"'home-pants' of Promo Block doesn't match expected '{expected_text}'"

@pytest.mark.skip(reason="In CI, there is no this element in changing section 2 now, so the test is skipped")
@allure.title("TC 13.01.19 - Check the display of the text in block 1 'home-pants' in the Promo Block")
def test_tc_13_01_19_check_info_block_text_in_section2_block1(self, driver):
"""This test checks if the info block text in section 2 block 1 'home-pants' is correct
Expand All @@ -291,7 +284,6 @@ def test_tc_13_01_19_check_info_block_text_in_section2_block1(self, driver):
assert actual_text == expected_text, f"Actual text '{actual_text}' in info block in section 2 block 1 " \
f"'home-pants' of Promo Block doesn't match expected '{expected_text}'"

@pytest.mark.skip(reason="In CI, there is no this element in changing section 2 now, so the test is skipped")
@allure.title("TC 13.01.20 - Check the display of the sign in block 1 'home-pants' in the Promo Block")
def test_tc_13_01_20_check_info_block_sign_in_section2_block1(self, driver):
"""This test checks if the sign in info block in section 2 block 1 'home-pants' is correct
Expand Down Expand Up @@ -581,7 +573,6 @@ def test_tc_13_01_43_check_section2_is_present(self, driver):
assert section2 is not None, "The Section 2 in the Promo Block is not present in the DOM tree " \
"on the main page"

@pytest.mark.skip(reason="In CI, there is no this element in changing section 2 now, so the test is skipped")
@allure.title("TC 13.01.44 - Check block 1 'home-pants' in section 2 of the Promo Block is present "
"in the DOM tree")
def test_tc_13_01_44_check_block1_in_section2_is_present(self, driver):
Expand Down Expand Up @@ -645,7 +636,6 @@ def test_tc_13_01_49_check_section1_clickability(self, driver):
section1 = page.check_section1_clickability()
assert section1, "The Section 1 in Promo Blck is not clickable"

@pytest.mark.skip(reason="In CI, there is no this element in changing section 2 now, so the test is skipped")
@allure.title("TC 13.01.50 - Check if block 1 'home-pants' in section 2 is clickable"
"in the Promo Block on the main page")
def test_tc_13_01_50_check_section2_block1_clickability(self, driver):
Expand Down Expand Up @@ -702,7 +692,6 @@ def test_tc_13_02_01_check_section1_link(self, driver):
assert page.get_actual_url_of_current_page() == PromoBlockLinks.YOGA_COLLECTION_URL \
and title == "New Luma Yoga Collection", "The link is not correct or the new page is not loaded"

@pytest.mark.skip(reason="In CI, there is no this element in changing section 2 now, so the test is skipped")
@allure.title("TC 13.02.02 - Check the link in section 2 block 1 'home-pants' in the Promo Block "
"leads to the correct page")
def test_tc_13_02_02_check_section2_block1_link(self, driver):
Expand Down

0 comments on commit 0dcca98

Please sign in to comment.