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

Cuke for web+diaspora:// link handler

closes #7826
parent 80dfdcd6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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

+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"
+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