Skip to content

Testing

rugk edited this page Dec 13, 2022 · 16 revisions

Config page

Enter these Mastodon handles and click somewhere else. Check, if you get the expected response (wording not exact, check semantics i.e. meaning) listed:

Mastodon handle Expected warning/error/response Reason
`` (empty) Warning: "Please enter a Mastodon handle." initial state when first installed
username Error: "Invalid Mastodon handle." syntax check
@chaos.social Error: "Invalid Mastodon handle." syntax check (empty username)
rugk@ Error: "Invalid Mastodon handle." syntax check (empty server)
rugk@example.com Error: "Entered server is no Mastodon instance" Mastodon server verification
test@mastodon.social/test Error: "Entered server is no Mastodon instance" Mastodon server verification
iNA5gz7@mastodon.social Error: "Entered Mastodon user does not exist on that server" Mastodon user verification
bla@http.badssl.com Error: "Mastodon server could not be contacted" Network error (HTTPS requirement)
bla@samefakedomain.example Error: "Mastodon server could not be contacted" Network error (DNS)
test@httpbin.org/status/500 Error: "Verification failed" Server error (HTTP 500/server down)
test@httpbin.org/status/400 Error: "Verification failed" Server error (HTTP 400 Bad Request)
test@httpbin.org/status/200 Error: "Verification failed" Server error (no JSON response)
rugk_testing@mastodon.social No error valid testing account
rugk@chaos.social No error valid account

Note some server requests may take some time, so the old error is shown in the meantime, that is about to be expected for now.

Redirects

Prerequirement: Setup a valid Mastodon handle in the config.

The examples below are written for the account rugk_testing@mastodon.social. In your test, only the server URLs may be different.

Mastodon

Follow

  1. Go to https://mastodon.social/@Gargron.
  2. Click "Follow" button.
  3. Expected: You get redirected to https://mastodon.social/authorize_interaction?uri=Gargron@mastodon.social (eventually after login):

Interact

  1. Go to https://mastodon.social/@Gargron/100114728075404707.
  2. Click either the "Reply", "Boost" or "Fav" button. (Please test with all buttons.)
  3. Expected: You get redirected to https://mastodon.social/web/statuses/100114728075404707 (eventually after login):

In addition:

In both cases

…try a right-click on an empty page. Expected: You should not be able to navigate back.

GNU Social

Note: This is currently quite unreliable, as GNUSocial instances often do not trigger a redirect, but actually often open a popup on the site itself, where you are supposed to enter your ID. Unfortunately, this is not yet supported by this add-on. As a workaround, you can try opening the "Subscribe" button (link) in a new tab.

  1. Go to https://gnusocial.no/rms.
  2. Click on the "subscribe" button at the top right:
  3. Expected: You get redirected to https://mastodon.social/authorize_interaction?uri=rms@gnusocial.no (eventually after login):
  4. (test for e2c4dd0b) Click the back button of your browser.
    Expected: You should be at https://gnusocial.no/rms again.

Pleroma

Follow from user page

  1. Go to https://pl.vinzv.space/users/vinzv.
  2. Click on the "Remote follow" button.
  3. Expected: You get redirected to https://mastodon.social/authorize_interaction?uri=vinzv@pl.vinzv.space (eventually after login).
  4. (test for e2c4dd0b) Click the back button of your browser.
    Expected: You should be at https://pl.vinzv.space/users/vinzv again.

Follow from foreign page

  1. Go to https://fediverse.network/fediverse.network.
  2. Click on “Follow changes at @fediversenetwork@fediverse.network”:
  3. Expected: You get redirected to https://mastodon.social/authorize_interaction?uri=fediversenetwork@fediverse.network
  4. (test for e2c4dd0b) Click the back button of your browser.
    Expected: You should be at https://fediverse.network/fediverse.network again.

Friendica

  1. Go to https://squeet.me/profile/nasa.
  2. Click on “Connect” or “Verbinden”:
  3. Expected: You get redirected to https://social.wiuwiu.de/authorize_interaction?uri=nasa@squeet.me
  4. Click the back button of your browser.
    Expected: You should be at https://squeet.me/profile/nasa again.