Skip to content

Commit

Permalink
[#530] TEST: finalize tests for previous refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
yashaka committed Jul 10, 2024
1 parent 58cae14 commit a3985aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/integration/condition__mixed_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_should_have_size__applied_to_browser__passed_and_failed(
assert (
"browser.has size {'height': 481, 'width': 720}\n"
'\n'
"Reason: ConditionMismatch: actual size: {'width': 720, 'height': 480}\n"
"Reason: ConditionMismatch: actual: {'width': 720, 'height': 480}\n"
) in str(error)
browser.should(have.no.size({'height': 481, 'width': 720}))

Expand Down Expand Up @@ -361,7 +361,7 @@ def test_should_be_emtpy__applied_to_non_form__passed_and_failed__compared(
assert (
"browser.all(('css selector', '#hidden')).has size 0\n"
'\n'
'Reason: ConditionMismatch: actual size: 2\n'
'Reason: ConditionMismatch: actual: 2\n'
) in str(error)
try:
ss('#hidden').should(be._empty)
Expand Down Expand Up @@ -418,7 +418,7 @@ def test_should_be_emtpy__applied_to_non_form__passed_and_failed__compared(
assert (
"browser.all(('css selector', '.absent')).has no (size 0)\n"
'\n'
'Reason: ConditionMismatch: actual size: 0\n'
'Reason: ConditionMismatch: actual: 0\n'
) in str(error)
ss('.absent').should(be._empty)
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,5 @@ def test_actions_on_frame_element_with_logging(session_browser):
"browser.element(('css selector', '.tox-edit-area__iframe')): element(('css "
"selector', '#tinymce')).all(('css selector', 'p')).has size 10\n"
'\n'
'Reason: ConditionMismatch: actual size: 1\n'
'Reason: ConditionMismatch: actual: 1\n'
) in handler.stream

0 comments on commit a3985aa

Please sign in to comment.