Commit 3d3750d2 authored by Oleg Kachur's avatar Oleg Kachur 👽
Browse files

Merge branch 'vlad/english_cancel_bid' into 'master'

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

See merge request !59
parents 21238443 53b334b3
Pipeline #20958 failed with stages
in 41 minutes and 57 seconds
*** Settings ***
Documentation 6. Робота зi ставками
... Повторна подача ставки пiсля натискання кнопки вiдмiнити
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 ***
Початок аукціону та перевірка стану
Check Action Status active_auction
Get Request
${RESP} = Get Request and return resp By ${ID} ${BIDDER_TOKEN[0]}
Status Should Be 200 ${RESP}
${AUCTION_ID} = Get From Dictionary ${resp.json()} auctionId
Set Suite Variable ${AUCTION_ID} ${AUCTION_ID}
${AUCTION_TITLE} = Get From Dictionary ${resp.json()['title']} uk_UA
Init Bidders
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. Під час ходу учасника подати валідну ставку
Wait Until Element Is Visible ${BTN_BET} 1m
Click Button ${BTN_BET}
Accepted Bet ${${MINIMALSTEP} + ${AMOUNT}}
2. Натиснути кнопку "Відмінити"
Wait Until Page Contains Element ${BTN_BET_REJECT}
Click Element ${BTN_BET_REJECT}
${ACCEPTED_BET} = Get Text //div[@class="bidder-accepted"]
${ACCEPTED_BET} = Remove String Using Regexp ${ACCEPTED_BET} [^.0-9]
Wait Until Page Contains Element //div[@class='updates-list-item-status' and .='Вашу ставку ${ACCEPTED_BET} грн було відмінено']
3. Повторно подати валідну ставку
Input Text ${NUMBER_INPUT} ${3 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
4. Дочекатися завершення ходу Учасника. Перевірити остаточно зафіксовану ставку за підсумками ходу учасника
Wait Until Page Contains Element //div[@class="bidder-accepted"]
${ACCEPTED_BET} = Get Text //div[@class="bidder-accepted"]
${ACCEPTED_BET} = Remove String Using Regexp ${ACCEPTED_BET} [^.0-9]
Wait Until Page Contains Element //div[@class='updates-list-item-status' and .='Ви зробили ставку ${ACCEPTED_BET} грн']
\ No newline at end of file
Supports Markdown
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