User:Johnsy/My Sandbox/New Page2

Test1: anErrorMessageShouldBeDisplayedWhenRulesAreViolated
Go to view Instrument Details page of an equity warrant (EQ ZH)

Go to edit mode

Navigate to Dates section

Enter an expiration date

Enter a launch date

Enter a payment date

Enter a redemption date

Navigate to the Additional Issue Info section

Enter a minimum exercise of ""

Submit for approval

Assert error messages are shown

Navigate to the Core Info section

Set the option style to "European"

Uncheck Listed

Submit for approval

Assert error messages are shown

Assert error message for exercise period is not shown

Assert error message for SWX symbol is not shown

Cancel to quit edit mode /* Not needed*/

Test2: approveInstrument
Go to view Instrument Details page of a GOAL (EQ ZH)

Navigate to the Basic Info section

Change the issuance status to "Final"

Submit for approval

Go to the approval page of GOAL

Select all approval types

Assert the text "Approval Workflow" is present

Approve the instrument

Test3: searchingForMyApprovalsReturnsTheRightResult
Go to Instrument Browser Page

Navigate to the Search section

Clear all the fields (default values)

Enter a Bloomberg code

Search for approved product

Assert the right result is returned