insertOfferWithCost
open http://localhost:8080/tntconcept/pages/control_panel.jsf
assertTitle
mouseDown //div[@id='cmSubMenuID5']/*//td[@class='ThemeOfficeMenuItemText' and text()='Ofertas']
mouseUp //div[@id='cmSubMenuID5']/*//td[@class='ThemeOfficeMenuItemText' and text()='Ofertas']
waitForPageToLoad 5000
clickAndWait //img[@title='Nuevo']
assertTitle
type offer:number 0001
selectAndWait offer:organization label=Autentia
assertTitle
select offer:contact label=VĂ­ctor Madrid
type offer:title Oferta Crisis
type offer:description Esto es una oferta
click //img[@onclick="offer_3AvalidityDateCalendarVar._popUpCalendar(this,document.getElementById('offer:validityDate'),'d/MM/yyyy')"]
click //div[@id='offer:validityDateSpan_calendarDiv']/table/tbody/tr[1]/td/table/tbody/tr/td[1]/span/span[3]
click //div[@id='offer:validityDateSpan_selectMonthDiv']/table/tbody/tr[5]/td/span
click link=12
click //img[@onclick="offer_3AmaturityDateCalendarVar._popUpCalendar(this,document.getElementById('offer:maturityDate'),'d/MM/yyyy')"]
click //div[@id='offer:maturityDateSpan_calendarDiv']/table/tbody/tr[1]/td/table/tbody/tr/td[1]/span/span[3]/img
click //div[@id='offer:maturityDateSpan_selectMonthDiv']/table/tbody/tr[5]/td/span
click //div[@id='offer:maturityDateSpan_calendarDiv']/table/tbody/tr[2]/td/span/table/tbody/tr[4]/td[5]/a
clickAndWait //img[@title='Nuevo']
assertTitle
type offer:roles:0:name Programador Junior
type offer:roles:0:costPerHour 10
type offer:roles:0:expectedHours 10
clickAndWait //a[@id='offer:costs:j_id_jsp_1637438683_145']/img
assertTitle
type offer:costs:0:units 2
type offer:costs:0:name Ordebadires
type offer:costs:0:cost 1000
click offer:costs:0:billable
clickAndWait //img[@title='Guardar']
assertTitle
verifyTextPresent Oferta Crisis