Skip to content

Instantly share code, notes, and snippets.

@Inviz
Created April 29, 2009 14:03
Show Gist options
  • Select an option

  • Save Inviz/103792 to your computer and use it in GitHub Desktop.

Select an option

Save Inviz/103792 to your computer and use it in GitHub Desktop.
Feature: Authorships
To have an ability to communicate with colleagues effictively
Every project member
Can use shared blog
Scenario: Member and guest dont see edit authprship link
Given scenario "orwikcrew_members"
And I am authenticated as "invizko@gmail.com/test"
And I go to "http://orwikcrew.miixa.org/"
And I follow "Company development"
And I should not see "Edit authorship"
And I log out
And I visit project named "Company development"
And I should not see "Edit authorship"
Scenario: Authors list on public project page reflects changes
Given scenario "orwikcrew_members"
And I am authenticated as "borya@mcb.harvard.edu/test"
And I go to "http://orwikcrew.miixa.org/"
And I follow "Company development"
And I follow "Edit authorship"
And I should see "Yaroslaff Fedin"
And it should have "#authorships ul" saying exactly ""
And I should see "Yaroslaff Fedin"
And I drag "Daniel Vartanov" to authors in "Company development"
And I drag "Yaroslaff Fedin" to authors in "Company development"
And I drag "Borya Shakhnovich" to authors in "Company development"
And I drag "Michael Klishin" to authors in "Company development"
And I follow "Company development"
And it should have ".authors .list" saying like "Daniel Vartanov, Yaroslaff Fedin, Borya Shakhnovich, Michael Klishin"
And I follow "Edit authorship"
And I drag "Yaroslaff Fedin" from authors in "Company development"
And I drag "Michael Klishin" to authors in "Company development" above "Daniel Vartanov"
And I follow "Company development"
And it should have ".authors .list" saying like "Michael Klishin, Daniel Vartanov, Borya Shakhnovich"
Scenario: PI adds few members and rearranges them, values get saved
Given scenario "orwikcrew_members"
And I am authenticated as "borya@mcb.harvard.edu/test"
And I go to "http://orwikcrew.miixa.org/"
And I follow "Company development"
And I follow "Edit authorship"
And I should see "Yaroslaff Fedin"
And it should have "#authorships ul" saying exactly ""
And I should see "Yaroslaff Fedin"
And I drag "Yaroslaff Fedin" to authors in "Company development"
And "Yaroslaff Fedin" is now author of "Company development"
And it should have "#authorships ul" saying "Yaroslaff Fedin"
And it should not have "#alumnis ul" mentioning "Yaroslaff Fedin"
And I drag "Oleg Andreev" to authors in "Company development"
And it should not have "#alumnis ul" mentioning any of "Yaroslaff Fedin, Oleg Andreev"
And it should have "#authorships ul" mentioning "Yaroslaff Fedin, Oleg Andreev"
And I drag "Michael Klishin" to authors in "Company development"
And it should not have "#alumnis ul" mentioning "Michael Klishin"
And it should have "#authorships ul" listing exactly "Yaroslaff Fedin, Oleg Andreev, Michael Klishin"
And I drag "Michael Klishin" to authors in "Company development" above "Oleg Andreev"
And it should have "#authorships ul" listing exactly "Yaroslaff Fedin, Michael Klishin, Oleg Andreev"
And I drag "Borya Shakhnovich" to authors in "Company development" above "Oleg Andreev"
And it should have "#authorships ul" listing exactly "Yaroslaff Fedin, Michael Klishin, Borya Shakhnovich, Oleg Andreev"
And I drag "Yaroslaff Fedin" to authors in "Company development" above "Borya Shakhnovich"
And it should have "#authorships ul" listing exactly "Michael Klishin, Yaroslaff Fedin, Borya Shakhnovich, Oleg Andreev"
And I drag "Yaroslaff Fedin" from authors in "Company development"
And it should have "#authorships ul" listing exactly "Michael Klishin, Borya Shakhnovich, Oleg Andreev"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment