test advanced search
  • load the page
  • select the event
  • change the type to Program
  • add an DemoCustomer1 user
  • fermer la fenetre
  • open advanced search
  • send a search for the DemoCustomer1 user
  • Vérifier que l'évènement est présent
  • cherche pour utilisateur Y
  • Vérifier que l'évènement n'est pas présent
setTimeout 50000
open https://127.0.0.1:8443/gwtcalendar/control/logout
open https://127.0.0.1:8443/gwtcalendar/control/setSessionLocale?newLocale=en
type USERNAME admin
type PASSWORD ofbiz
clickAndWait //input[@value='Login']
open https://127.0.0.1:8443/gwtcalendar/control/main
waitForElementPresent //a[@class='header']
click //a[@class='header']
waitForElementPresent //form[@id='FilterCalendarEvents']
select //select[@id='FilterCalendarEvents_workEffortTypeId'] Program
click //button[contains(.,'Send')] Program
waitForElementNotPresent //div[@class='appointment' and contains(.,'TestAuto')]
select //select[@id='FilterCalendarEvents_workEffortTypeId'] Available
click //button[contains(.,'Send')] Program
waitForElementPresent //div[@class='appointment' and contains(.,'TestAuto')]
type //input[@id='FilterCalendarEvents_partyId'] DemoCustomer3
click //button[contains(.,'Send')] Program
waitForElementNotPresent //div[@class='appointment' and contains(.,'TestAuto')]
type //input[@id='FilterCalendarEvents_partyId'] admin
click //button[contains(.,'Send')] Program
waitForElementPresent //div[@class='appointment' and contains(.,'TestAuto')]
assertElementNotPresent //div[@class='errorMessage']