test: Update IDP integration test to match new templates

This commit is contained in:
Joachim Van Herwegen
2021-07-16 10:08:56 +02:00
parent 13641fc494
commit 51b7946dac
2 changed files with 29 additions and 20 deletions

View File

@@ -98,9 +98,9 @@ export class IdentityTestState {
const res = await this.fetchIdp(url);
expect(res.status).toBe(200);
const text = await res.text();
const register = this.extractUrl(text, 'a:contains("Register")', 'href');
const register = this.extractUrl(text, 'a:contains("Sign up")', 'href');
const login = this.extractUrl(text, 'form', 'action');
const forgotPassword = this.extractUrl(text, 'a:contains("Forgot Password")', 'href');
const forgotPassword = this.extractUrl(text, 'a:contains("Forgot password")', 'href');
return { register, login, forgotPassword };
}