Commit 4cf7c393 authored by Vladyslav Koval's avatar Vladyslav Koval
Browse files

Add test for CBD3-TE-MA-UC-06-03

Attempt to place invalid bid
parent 22087968
Pipeline #20986 passed with stages
in 40 minutes and 2 seconds
*** Settings ***
Documentation 6.Робота зi ставками
... Подача невалідної ставки
... https://confluence-sale.prozorro.org/pages/viewpage.action?pageId=60950735#id-ТестуванняМАEnglish-CBD3-TE-MA-UC-06-03
Library String
Library DateTime
Resource ../fixtures/Resources/auction_conditions.robot
Test Setup Check For Pass Before
Suite Setup Create Session api_procedures %{PROCEDURE_URL} verify=True
Suite Teardown Run Keywords Delete All Sessions Close All Browsers
*** Variables ***
${AUCTION_NAME} timber-english-initial-auction
*** Test Cases ***
Початок аукціону та перевірка стану
Post Now ${AUCTION_NAME}
Check Action Status active_auction
Init Bidders
Open Browser Maximized about:blank ${BIDDER_TOKEN[0]}
${BIDDER_URL_1} = Get Request and return participationUrl By ${ID} ${BIDDER_TOKEN[0]}
Allow Terms ${BIDDER_URL_1}
Open Browser Maximized about:blank ${BIDDER_TOKEN[1]}
${BIDDER_URL_2} = Get Request and return participationUrl By ${ID} ${BIDDER_TOKEN[1]}
Allow Terms ${BIDDER_URL_2}
Round One
Switch Browser chrome_${BIDDER_TOKEN[1]}
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${${MINIMALSTEP} + ${AMOUNT}}
Під час ходу учасника ввести учасником НЕ валідні ставки та натиснути кнопку "Подати"
Switch Browser chrome_${BIDDER_TOKEN[0]}
Wait Until Element Is Visible ${BTN_BET} 1m
Input Text ${NUMBER_INPUT} ${${AMOUNT} + ${MINIMALSTEP} -1 }
Click Button ${BTN_BET}
${VALID_BID} = Evaluate ${AMOUNT} + ${MINIMALSTEP}
Wait Until Page Contains Element //div[@class='updates-list-item-status' and .='Ставка має бути від ${VALID_BID}.00 грн']
Clear Text ${NUMBER_INPUT}
Input Text ${NUMBER_INPUT} 0
Click Button ${BTN_BET}
Element Should Be Disabled ${BTN_BET}
Clear Text ${NUMBER_INPUT}
Click Element ${NUMBER_INPUT}
Press Keys ${NUMBER_INPUT} -2321
Page Should Contain Element //input[@class='input-block' and @value="2'321.00"]
Clear Text ${NUMBER_INPUT}
Press Keys ${NUMBER_INPUT} qwerty
Press Keys ${NUMBER_INPUT} :/\']
Press Keys ${NUMBER_INPUT} -12bdsa;'/|
Page Should Contain Element //input[@class='input-block' and @value="12.00"]
Clear Text ${NUMBER_INPUT}
Element Should Be Disabled ${BTN_BET}
*** Keywords ***
Clear Text
[Arguments] ${inputField}
Press Keys ${inputField} CTRL+a+BACKSPACE
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment