Loading Changelog.md +1 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ * Add compatibility with macOS to `script/configure_bundler` [#7830](https://github.com/diaspora/diaspora/pull/7830) ## Features * Add `web+diaspora://` link handler [#7826](https://github.com/diaspora/diaspora/pull/7826) # 0.7.6.0 Loading features/desktop/diaspora_links_resolve.feature 0 → 100644 +15 −0 Original line number Diff line number Diff line @javascript Feature: (web+)diaspora:// links resolve In order to open diaspora posts on my pod from external websites As a user I want external links to be resolved to local pod paths Background: Given following user exists: | username | email | | Alice | alice@alice.alice | And "alice@alice.alice" has a public post with text "This is a post accessed by an external link" Scenario: Resolving web+diaspora:// link When I open an external link to the first post of "alice@alice.alice" Then I should see "This is a post accessed by an external link" features/step_definitions/link_steps.rb 0 → 100644 +7 −0 Original line number Diff line number Diff line # frozen_string_literal: true When /^I open an external link to the first post of "([^"]*)"$/ do |email| user = User.find_by(email: email) post = user.posts.first visit(link_path(q: "web+diaspora://#{user.diaspora_handle}/post/#{post.guid}")) end Loading
Changelog.md +1 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ * Add compatibility with macOS to `script/configure_bundler` [#7830](https://github.com/diaspora/diaspora/pull/7830) ## Features * Add `web+diaspora://` link handler [#7826](https://github.com/diaspora/diaspora/pull/7826) # 0.7.6.0 Loading
features/desktop/diaspora_links_resolve.feature 0 → 100644 +15 −0 Original line number Diff line number Diff line @javascript Feature: (web+)diaspora:// links resolve In order to open diaspora posts on my pod from external websites As a user I want external links to be resolved to local pod paths Background: Given following user exists: | username | email | | Alice | alice@alice.alice | And "alice@alice.alice" has a public post with text "This is a post accessed by an external link" Scenario: Resolving web+diaspora:// link When I open an external link to the first post of "alice@alice.alice" Then I should see "This is a post accessed by an external link"
features/step_definitions/link_steps.rb 0 → 100644 +7 −0 Original line number Diff line number Diff line # frozen_string_literal: true When /^I open an external link to the first post of "([^"]*)"$/ do |email| user = User.find_by(email: email) post = user.posts.first visit(link_path(q: "web+diaspora://#{user.diaspora_handle}/post/#{post.guid}")) end