Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Nov 3, 2024
1 parent 4aba58e commit 996bb44
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,4 @@ jobs:
browser: safari
os: macos-15
cache-key: py-safari
run: |
bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-safari
run: bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-safari
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def test_should_catch_errors_when_executing_initial_script(driver, pages):
driver.execute_async_script("throw Error('you should catch this!');")


@pytest.mark.xfail_safari
def test_should_be_able_to_execute_asynchronous_scripts(driver, pages):
pages.load("ajaxy_page.html")

Expand Down
4 changes: 3 additions & 1 deletion py/test/selenium/webdriver/common/upload_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# under the License.

import os
import textwrap

import pytest

Expand All @@ -30,7 +31,8 @@ def get_local_path():
current_dir = os.path.dirname(os.path.realpath(__file__))

def wrapped(filename):
return os.path.join(current_dir, filename)
full_path = os.path.join(current_dir, filename)
return textwrap.fill(full_path, width=512)

return wrapped

Expand Down
1 change: 0 additions & 1 deletion py/test/selenium/webdriver/common/webdriverwait_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ def test_expected_condition_element_to_be_clickable(driver, pages):
assert element.is_displayed() is False


@pytest.mark.xfail_safari
def test_expected_condition_staleness_of(driver, pages):
pages.load("dynamicallyModifiedPage.html")
element = driver.find_element(By.ID, "element-to-remove")
Expand Down

0 comments on commit 996bb44

Please sign in to comment.