From e81a039ff0a3bb372d2473cd7ce439f6e0717905 Mon Sep 17 00:00:00 2001 From: nsubbot Date: Mon, 15 Dec 2025 14:33:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D1=8F=20=D0=BE=D0=BA=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=B0=D0=BD=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B0=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=B8?= =?UTF-8?q?=D0=B7=20=D1=82=D0=B5=D1=81=D1=82=D0=B0=20=D0=B8=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D0=B0=20=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D1=81=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=BE=D1=8F=D0=BD=D0=B8=D1=8F=20=D1=81=D0=B5=D1=80=D0=B2=D0=B8?= =?UTF-8?q?=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/service_status_tab.py | 17 ++--------------- tests/e2e/test_service_status_tab.py | 5 +---- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/pages/service_status_tab.py b/pages/service_status_tab.py index 4a964ba..b3a7994 100644 --- a/pages/service_status_tab.py +++ b/pages/service_status_tab.py @@ -33,7 +33,6 @@ class ServiceStatusTab(BasePage): self.table_locator = self.iframe_locator.locator("div.MuiBox-root > div > table") self.tab_title_locator = self.iframe_locator.locator("//h5[text()='Состояние контейнеров']") self.update_button_locator = self.iframe_locator.get_by_role("button", name='Обновить') - self.analyzer_open_button_locator = self.iframe_locator.get_by_role("button", name='открыть анализатор') self.tab_title = Text(page, self.tab_title_locator, @@ -41,9 +40,7 @@ class ServiceStatusTab(BasePage): self.update_button = Button(page, self.update_button_locator, "update_button") - self.analyzer_open_button = Button(page, - self.analyzer_open_button_locator, - "analyzer_open_button") + self.expand_work_area_button = ExpandButton(page) self.services_table = TableComponent(page) @@ -199,6 +196,7 @@ class ServiceStatusTab(BasePage): rows_count = self.services_table.get_rows_count(self.table_locator) for i in range(rows_count): row_locator = self.services_table.get_row_locator(self.table_locator, i) + row_locator.scroll_into_view_if_needed() layers_button = row_locator.get_by_role("button", name="Слои") expect(layers_button).to_be_visible(), f"Layers button is missing in {i} row" @@ -314,17 +312,6 @@ class ServiceStatusTab(BasePage): "Service statuses table is missing" ) - def should_be_analyzer_open_button(self) -> None: - """Проверяет наличие кнопки 'navigate_before/navigate_next'. - - Raises: - AssertionError: Если кнопка отсутствует. - """ - - self.analyzer_open_button.check_visibility( - "Analyzer open button on bottom of service statuses tab is missing" - ) - def should_be_expand_work_area_button(self) -> None: """Проверяет наличие кнопки расширения/сжатия рабочей области вкладки. diff --git a/tests/e2e/test_service_status_tab.py b/tests/e2e/test_service_status_tab.py index 58ee87f..9e488e6 100644 --- a/tests/e2e/test_service_status_tab.py +++ b/tests/e2e/test_service_status_tab.py @@ -50,7 +50,7 @@ class TestServiceStatusTab: # Клик по пункту 'Статус обслуживания' в панели навигации обслуживания mp.click_subpanel_item("Статус обслуживания") - # @pytest.mark.develop + @pytest.mark.develop def test_service_status_tab_content(self, browser: Page): """Проверяет содержимое вкладки 'Статус обслуживания'. @@ -66,9 +66,6 @@ class TestServiceStatusTab: # Проверка наличия кнопки 'Обновить' sst.should_be_update_button() - # Проверка наличия кнопки 'Открыть анализатор' - sst.should_be_analyzer_open_button() - # Проверка наличия кнопки расширения/сжатия рабочей области вкладки sst.should_be_expand_work_area_button()