From 127a7129bb3b05ff1039460ce984240622a88d4a Mon Sep 17 00:00:00 2001 From: Stanislaw Findeisen Date: Thu, 4 Apr 2024 12:16:59 +0200 Subject: [PATCH] get rid of tests_iframe (#55) the referenced URL does not work anymore --- src/tests_iframe/__init__.py | 0 src/tests_iframe/resources/buyer/index.html | 1 - src/tests_iframe/test.py | 37 --------------------- 3 files changed, 38 deletions(-) delete mode 100644 src/tests_iframe/__init__.py delete mode 100644 src/tests_iframe/resources/buyer/index.html delete mode 100644 src/tests_iframe/test.py diff --git a/src/tests_iframe/__init__.py b/src/tests_iframe/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/tests_iframe/resources/buyer/index.html b/src/tests_iframe/resources/buyer/index.html deleted file mode 100644 index 50cd19d..0000000 --- a/src/tests_iframe/resources/buyer/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/tests_iframe/test.py b/src/tests_iframe/test.py deleted file mode 100644 index d49cbeb..0000000 --- a/src/tests_iframe/test.py +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2021 RTBHOUSE. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -import logging - -from selenium.webdriver.common.by import By -from selenium.webdriver.support import expected_conditions as EC -from selenium.webdriver.support.ui import WebDriverWait - -from common.base_test import BaseTest -from common.mockserver import MockServer -from common.utils import MeasureDuration -from common.utils import log_exception -from common.utils import measure_time -from common.utils import print_debug - -logger = logging.getLogger(__file__) - - -class IframeTest(BaseTest): - - @print_debug - @measure_time - @log_exception - def test__should_show_ad_jeff_through_iframe(self): - with MockServer(port=8111, directory='resources/buyer') as buyer_server: - - with MeasureDuration("joinAdInterestGroup"): - self.driver.get(buyer_server.address) - self.findFrameAndSwitchToIt() - self.assertDriverContainsText('body', 'joined interest group') - - with MeasureDuration("runAdAuction"): - self.driver.get('https://www.jefftk.com/test/td/auction.html') - self.driver.find_element(By.TAG_NAME, 'button').click() - self.findFrameAndSwitchToIt() - self.assertDriverContainsText('body', 'TC AD 1')