Commit a7cc0645 authored by cmrd Senya's avatar cmrd Senya Committed by Benjamin Neff

Cuke for web+diaspora:// link handler

closes #7826
parent 80dfdcd6
......@@ -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
......
@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"
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment