Commit 7db6b350 authored by Oleg Kachur's avatar Oleg Kachur 👽
Browse files

Merge branch 'vlad/english_bid_updates' into 'master'

Add test for CBD3-TE-MA-UC-05-09

See merge request !63
parents 0667ca50 603c580f
Pipeline #21481 failed with stages
in 32 minutes and 54 seconds
*** Settings ***
Documentation 5.Функціональні особливості відображення блоків модулю аукціону
... Блок Bid Updates
... https://confluence-sale.prozorro.org/pages/viewpage.action?pageId=60950735#id-ТестуванняМАEnglish-CBD3-TE-MA-UC-05-09
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 ***
Init Auction
Post Now ${AUCTION_NAME}
Check Action Status active_auction
Init bidder
Open Browser Maximized about:blank ${BIDDER_TOKEN[2]}
${BIDDER_URL_3} = Get Request and return participationUrl By ${ID} ${BIDDER_TOKEN[2]}
Allow Terms ${BIDDER_URL_3}
1. Подати невалідну ставку
Switch Browser chrome_${BIDDER_TOKEN[2]}
Wait Until Element Is Visible ${BTN_BET} 30s
${VALID_BID} = Evaluate ${AMOUNT} + ${MINIMALSTEP}
Input Text ${NUMBER_INPUT} 1
Click Button ${BTN_BET}
Wait Until Page Contains Element //li[@class='updates-list-item danger' and contains(div,'Ставка має бути від ${VALID_BID}.00 грн')]
2. Подати ставку рівну закритій ціновій пропозиції
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${2 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${2 * ${MINIMALSTEP} + ${AMOUNT}}
Element Should Be Disabled ${REFRESH_BET}
Input Text ${NUMBER_INPUT} ${2 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${REFRESH_BET}
Accepted Bet ${2 * ${MINIMALSTEP} + ${AMOUNT}}
3. Подати ставку рівну поточній ціновій пропозиції (підтвердженій в попередньому раунді)
Wait Until Element Is Visible ${BTN_BET} 1m
Input Text ${NUMBER_INPUT} ${2 * ${MINIMALSTEP} + ${AMOUNT}}
${VALID_BID} = Evaluate 3 * ${MINIMALSTEP} + ${AMOUNT}
Click Button ${BTN_BET}
Wait Until Page Contains Element //li[@class='updates-list-item danger' and contains(div,'Ставка має бути від ${VALID_BID}.00 грн')]
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