summaryrefslogtreecommitdiffstats
path: root/ui/src/api_tests
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-05-03 13:22:32 -0400
committerDessalines <tyhou13@gmx.com>2020-05-03 13:22:32 -0400
commit2c22e413eba3b51931af0d9457b6723ad88cf016 (patch)
tree46c31f42610b844775483bf74b4f3b9fe3033858 /ui/src/api_tests
parenta09c818746f159bbc7ece19ee263607002dbb6a5 (diff)
parent75c6c8521b2c45e11920ce86a4bc898565e93fbd (diff)
Merge branch 'federation' into federated_remove_actions
Diffstat (limited to 'ui/src/api_tests')
-rw-r--r--ui/src/api_tests/api.spec.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/api_tests/api.spec.ts b/ui/src/api_tests/api.spec.ts
index cc240476..ed97174e 100644
--- a/ui/src/api_tests/api.spec.ts
+++ b/ui/src/api_tests/api.spec.ts
@@ -98,7 +98,9 @@ describe('main', () => {
describe('follow_accept', () => {
test('/u/lemmy_alpha follows and accepts lemmy_beta/c/main', async () => {
// Make sure lemmy_beta/c/main is cached on lemmy_alpha
- let searchUrl = `${lemmyAlphaApiUrl}/search?q=http://lemmy_beta:8550/c/main&type_=All&sort=TopAll`;
+ // Use short-hand search url
+ let searchUrl = `${lemmyAlphaApiUrl}/search?q=!main@lemmy_beta:8550&type_=All&sort=TopAll`;
+
let searchResponse: SearchResponse = await fetch(searchUrl, {
method: 'GET',
}).then(d => d.json());