Skip to content

Commit

Permalink
Lint .robot files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerkko Pelttari committed Mar 15, 2023
1 parent 2464617 commit 93d86f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions atest/test/03_Waiting/promise_to.robot
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
*** Settings ***
Resource imports.resource

Test Setup New Page ${WAIT_URL}

Test Setup New Page ${WAIT_URL}

*** Test Cases ***
Promise To With Type Conversion
${promise}= Promise To Click id=victim button=left
${promise} = Promise To Click id=victim button=left
Select Options By id=dropdown value True enabled
Click id=submit noWaitAfter=True
Wait For ${promise}
Wait For ${promise}

Promise To Convert Type
${promise}= Promise To Click id=clickWithOptions left clickCount=4 delay=200 ms
Go To ${LOGIN_URL}
Wait For ${promise}
${promise} = Promise To Click id=clickWithOptions left clickCount=4 delay=200 ms
Go To ${LOGIN_URL}
Wait For ${promise}
Get Text id=click_count == 4
Get Text id=mouse_delay_time validate int(value) > 100 and int(value) < 300
Get Text id=mouse_button == left
Expand All @@ -23,8 +22,8 @@ Could Not Find Keyword W Promise To
[Setup] NONE
TRY
Promise To Could Not Find Keyword
EXCEPT ValueError: Unknown keyword 'Could Not Find Keyword'! 'Promise To' can only be used with Browser keywords. AS ${e}
Log ${e}
EXCEPT ValueError: Unknown keyword 'Could Not Find Keyword'! 'Promise To' can only be used with Browser keywords. AS ${e}
Log ${e}
ELSE
FAIL Should have failed
END
END
2 changes: 1 addition & 1 deletion atest/test/05_JS_Tests/jsextension.robot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Force Tags no-iframe
*** Test Cases ***
Promise To Call Custom Js Keyword
New Page
${promise} Promise To My Funky keyword h1
${promise} = Promise To My Funky keyword h1
Go To ${LOGIN_URL}
Wait For ${promise}
Get Text h1 == Funk yeah!
Expand Down

0 comments on commit 93d86f1

Please sign in to comment.