As a user writing a search query
I can write keywords, operators and values
In order to create a valid query.
Scenario 1
Given I have the list of email
SUBJECT | DATE | NAME | STATE |
KDE : Dynamics Project | 2016/02/16 | John | unread |
KDE : Dynamics PAQL KMail | 2016/02/17 | Franck | unread |
Qt : Assasin project | 2016/03/15 | Francis | unread |
When I write "receiver is" a value list appear :
John |
Franck |
Francis |
and if i press enter the first value is selected
Then the query "receiver is John" is written.
Scenario 2
Given I have the list of email
SUBJECT | DATE | NAME | STATE |
KDE : Dynamics Project | 2016/02/16 | John | unread |
KDE : Dynamics PAQL KMail | 2016/02/17 | Franck | unread |
Qt : Assasin project | 2016/03/15 | Francis | unread |
When I write "receiver is f" a value list appear :
Franck |
Francis |
and if i press enter the first value is selected
Then the query "receiver is Franck" is written.
Scenario 3
Given I have the list of email
SUBJECT | DATE | NAME | STATE |
KDE : Dynamics Project | 2016/02/16 | John | unread |
KDE : Dynamics PAQL KMail | 2016/02/17 | Franck | unread |
Qt : Assasin project | 2016/03/15 | Francis | unread |
When I write "Date=" a value list appear :
2016/02/16 |
2016/02/17 |
2016/03/15 |
and if i press enter the first value is selected
Then the query "Date=2016/02/16" is written.
Scenario 4
Given I'm writing a query
When I write "Date>" a calendar appear and if i select a date like for example 2014/05/20
Then the query "Date>2014/05/20" is written.
Scenario 5
Given I have the list of email
SUBJECT | DATE | NAME | STATE |
KDE : Dynamics Project | 2016/02/16 | John | unread |
KDE : Dynamics PAQL KMail | 2016/02/17 | Franck | unread |
Qt : Assasin project | 2016/03/15 | Francis | unread |
When I write "State=" a value list appear :
read |
unread |
and if i press enter the first value is selected
Then the query "State=read" is written.
Scenario 6
Given I have the list of email
SUBJECT | DATE | NAME | STATE |
KDE : Dynamics Project | 2016/02/16 | John | unread |
KDE : Dynamics PAQL KMail | 2016/02/17 | Franck | unread |
Qt : Assasin project | 2016/03/15 | Francis | unread |
When I write "Subject=" a value list appear :
KDE : Dynamics Project |
KDE : Dynamics PAQL |
Qt : Assasin project |
and if i press enter the first value is selected
Then the query "Subject=KDE : Dynamics Project" is written.