navigate to experimental profile on successful post
This commit is contained in:
parent
044d03c12c
commit
40c04234bd
4 changed files with 17 additions and 5 deletions
|
|
@ -7,5 +7,9 @@ app.models.User = Backbone.Model.extend({
|
|||
|
||||
authenticated : function() {
|
||||
return !!this.id;
|
||||
},
|
||||
|
||||
expProfileUrl : function(){
|
||||
return "/people/" + app.currentUser.get("guid") + "?ex=true"
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ app.pages.Framer = app.views.Base.extend({
|
|||
},
|
||||
|
||||
navigateToShow : function(){
|
||||
app.router.navigate(this.model.url(), {trigger: true, replace: true})
|
||||
app.router.navigate(app.currentUser.expProfileUrl(), {trigger: true, replace: true})
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -148,3 +148,11 @@ end
|
|||
Then /^the post should mention "([^"]*)"$/ do |user_name|
|
||||
within('#post-content') { find("a:contains('#{user_name}')").should be_present }
|
||||
end
|
||||
|
||||
When /^I click the "([^"]*)" post$/ do |post_text|
|
||||
find(".content:contains('#{post_text}')").click
|
||||
end
|
||||
|
||||
Then /^"([^"]*)" should be the first canvas frame$/ do |post_text|
|
||||
find(".canvas-frame:first").should have_content(post_text)
|
||||
end
|
||||
|
|
@ -51,16 +51,16 @@ Feature: Creating a new post
|
|||
Then the post's default mood should be "Wallpaper"
|
||||
Then it should be a wallpaper frame with the background "button.gif"
|
||||
Then I should see "This is hella customized" in the framer preview
|
||||
#changing the mood changes the presentation
|
||||
When I select the mood "Day"
|
||||
Then the post's mood should be "Day"
|
||||
And "button.gif" should be in the post's picture viewer
|
||||
And I should see "This is hella customized" in the framer preview
|
||||
|
||||
When I finalize my frame
|
||||
And I go to "/stream"
|
||||
Then "This is hella customized" should be post 1
|
||||
And I click the show page link for "This is hella customized"
|
||||
#on stream
|
||||
Then "This is hella customized" should be the first canvas frame
|
||||
When I click the "This is hella customized" post
|
||||
#on show page
|
||||
And the post's mood should still be "Day"
|
||||
|
||||
Scenario: The Wallpaper mood
|
||||
|
|
|
|||
Loading…
Reference in a new issue