forked from diaspora/diaspora
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e499c0
commit fd69f02
Showing
5 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
When /^(.*) in the header$/ do |action| | ||
within('header') do | ||
When action | ||
end | ||
end | ||
|
||
When /^(.*) in the modal window$/ do |action| | ||
within('#fancybox-wrap') do | ||
When action | ||
end | ||
end | ||
|
||
When /^(.*) in the aspect list$/ do |action| | ||
within('#aspect_list') do | ||
When action | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@aspects @javascript | ||
Feature: User creates an aspect | ||
In order to share with a limited group | ||
As a User | ||
I want to create a new aspect | ||
|
||
Scenario: success | ||
Given I am signed in | ||
And I follow "Manage" in the header | ||
And I follow "Add a new aspect" | ||
When I fill in "Name" with "Dorm Mates" in the modal window | ||
And I press "Create" in the modal window | ||
Then I should see "Manage Aspects" | ||
And I should see "Dorm Mates" in the header | ||
And I should see "Dorm Mates" in the aspect list | ||
|
||
Scenario: I omit the name | ||
Given I am signed in | ||
And I follow "Manage" in the header | ||
And I follow "Add a new aspect" | ||
When I press "Create" in the modal window | ||
Then I should see "Manage Aspects" | ||
And I should see "Aspect creation failed." |