mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
set data-test attribute in login page for e2e testing
This commit is contained in:
parent
58513fa299
commit
0812beb050
@ -4,6 +4,7 @@ export class LoginPage {
|
|||||||
// selectors
|
// selectors
|
||||||
emailInput = "input[type=email]";
|
emailInput = "input[type=email]";
|
||||||
passwordInput = "input[type=password]";
|
passwordInput = "input[type=password]";
|
||||||
|
forgotPasswordLink = '[data-test="forgot-password-link"]';
|
||||||
submitBtn = "[type=submit]";
|
submitBtn = "[type=submit]";
|
||||||
emailHint = "#vee_Email";
|
emailHint = "#vee_Email";
|
||||||
passwordHint = "#vee_Password";
|
passwordHint = "#vee_Password";
|
||||||
@ -27,4 +28,8 @@ export class LoginPage {
|
|||||||
cy.get(this.submitBtn).click();
|
cy.get(this.submitBtn).click();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openForgotPasswordPage() {
|
||||||
|
cy.get(this.forgotPasswordLink).click();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
</b-row>
|
</b-row>
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col class="d-flex justify-content-end">
|
<b-col class="d-flex justify-content-end">
|
||||||
<router-link to="/forgot-password" class="mt-3">
|
<router-link to="/forgot-password" class="mt-3" data-test=forgot-password-link>
|
||||||
{{ $t('settings.password.forgot_pwd') }}
|
{{ $t('settings.password.forgot_pwd') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</b-col>
|
</b-col>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user