CBD3-TE-MA-UC-06-01.robot 1.53 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
*** Settings ***
Documentation  6.Робота зi ставками 
    ...  Поле поданої ставки пусте
    ...  https://confluence-sale.prozorro.org/pages/viewpage.action?pageId=60950735#id-ТестуванняМАEnglish-CBD3-TE-MA-UC-06-01

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 Bidder 

    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}

Під час ходу учасника поле вводу ставки залишити пустим.
    [Documentation]  If bid is empty, page should not contain reject bid button
    ...  reject button checked in CBD3-TE-MA-UC-06-04
    
    Wait Until Page Contains Element  ${BTN_BET}  1m
    Page Should Contain Element  ${NUMBER_INPUT}
    Click Button  ${BTN_BET}
    Page Should Not Contain  //div[@class='updates-list-item-status' and contains(.,'Ви зробили ставку')]
    Element Should Be Disabled  ${BTN_BET}
    Page Should Not Contain Element  ${BTN_BET_REJECT}