Add test scenario: deleting an aspect from homepage
This commit is contained in:
parent
b60101b9ad
commit
068d3c690d
2 changed files with 18 additions and 0 deletions
|
|
@ -31,6 +31,17 @@ Feature: User manages contacts
|
||||||
Then I should be on the contacts page
|
Then I should be on the contacts page
|
||||||
And I should not see "People" within "#aspect_nav"
|
And I should not see "People" within "#aspect_nav"
|
||||||
|
|
||||||
|
Scenario: deleting an aspect from homepage
|
||||||
|
Given I am signed in
|
||||||
|
And I have an aspect called "People"
|
||||||
|
When I am on the home page
|
||||||
|
And I click on "People" aspect edit icon
|
||||||
|
And I wait for the ajax to finish
|
||||||
|
And I click ok in the confirm dialog to appear next
|
||||||
|
And I press "Delete" in the modal window
|
||||||
|
Then I should be on the aspects page
|
||||||
|
And I should not see "People" within "#aspect_nav"
|
||||||
|
|
||||||
Scenario: Editing the aspect memberships of a contact from the aspect edit facebox
|
Scenario: Editing the aspect memberships of a contact from the aspect edit facebox
|
||||||
Given I am signed in
|
Given I am signed in
|
||||||
And I have 2 contacts
|
And I have 2 contacts
|
||||||
|
|
|
||||||
|
|
@ -215,3 +215,10 @@ When /^I resize my window to 800x600$/ do
|
||||||
window.resizeTo(800,600);
|
window.resizeTo(800,600);
|
||||||
JS
|
JS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
When /^I click on "([^"]*)" aspect edit icon$/ do |aspect_name|
|
||||||
|
When %{I hover over the "ul.sub_nav > li:contains('#{aspect_name}')"}
|
||||||
|
within("#aspect_nav") do
|
||||||
|
find(:xpath, "//a[@rel='facebox'][.//img[@title='Edit #{aspect_name}']]").click
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue