mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
docs: Make registration form self-explanatory.
This commit is contained in:
committed by
Joachim Van Herwegen
parent
e99f670252
commit
969bb0ee6c
@@ -117,8 +117,8 @@ describe('A Solid server with IDP', (): void => {
|
||||
const res = await postForm(`${baseUrl}idp/register`, formBody);
|
||||
expect(res.status).toBe(200);
|
||||
const text = await res.text();
|
||||
expect(text).toMatch(new RegExp(`your WebID.*${webId}`, 'u'));
|
||||
expect(text).toMatch(new RegExp(`your email address.*${email}`, 'u'));
|
||||
expect(text).toMatch(new RegExp(`your.WebID.*${webId}`, 'u'));
|
||||
expect(text).toMatch(new RegExp(`your.email.address.*${email}`, 'u'));
|
||||
expect(text).toMatch(new RegExp(`<code><${webId}> <http://www.w3.org/ns/solid/terms#oidcIssuer> <${baseUrl}>\\.</code>`, 'mu'));
|
||||
});
|
||||
});
|
||||
@@ -280,7 +280,7 @@ describe('A Solid server with IDP', (): void => {
|
||||
const res = await postForm(`${baseUrl}idp/register`, formBody);
|
||||
expect(res.status).toBe(200);
|
||||
const text = await res.text();
|
||||
expect(text).toMatch(new RegExp(`Your new pod.*${baseUrl}${podName}/`, 'u'));
|
||||
expect(text).toMatch(new RegExp(`Your new Pod.*${baseUrl}${podName}/`, 'u'));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -305,7 +305,7 @@ describe('A Solid server with IDP', (): void => {
|
||||
newWebId = matchWebId![1];
|
||||
expect(text).toMatch(new RegExp(`new WebID is.*${newWebId}`, 'u'));
|
||||
expect(text).toMatch(new RegExp(`your email address.*${newMail}`, 'u'));
|
||||
expect(text).toMatch(new RegExp(`Your new pod.*${baseUrl}${podName}/`, 'u'));
|
||||
expect(text).toMatch(new RegExp(`Your new Pod.*${baseUrl}${podName}/`, 'u'));
|
||||
});
|
||||
|
||||
it('initializes the session and logs in.', async(): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user