Extract URLs in extra file and change riot link to element-link (#551)

* Update matrix chat link to new element URL

* Correct other usages of the element link

* Extracted static external links into separate file
This commit is contained in:
Erik Michelson 2020-09-13 16:38:53 +02:00 committed by GitHub
parent ca2bd1d90f
commit be2428f22c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 43 additions and 22 deletions

View file

@ -138,8 +138,8 @@ describe('Links Intro', () => {
describe('Follow us Links', () => {
it('Github', () => {
cy.get('a[href="https://github.com/codimd/server"]')
.checkExternalLink('https://github.com/codimd/server')
cy.get('a[href="https://github.com/codimd/"]')
.checkExternalLink('https://github.com/codimd/')
})
it('Discourse', () => {
@ -148,13 +148,13 @@ describe('Links Intro', () => {
})
it('Matrix', () => {
cy.get('a[href="https://riot.im/app/#/room/#hedgedoc:matrix.org"]')
.checkExternalLink('https://riot.im/app/#/room/#hedgedoc:matrix.org')
cy.get('a[href="https://app.element.io/#/room/#hedgedoc:matrix.org"]')
.checkExternalLink('https://app.element.io/#/room/#hedgedoc:matrix.org')
})
it('Mastodon', () => {
cy.get('a[href="https://social.codimd.org/mastodon"]')
.checkExternalLink('https://social.codimd.org/mastodon')
cy.get('a[href="https://social.codimd.org"]')
.checkExternalLink('https://social.codimd.org')
})
it('POEditor', () => {