fixed test by clearing field first

This commit is contained in:
Erik Jan de Wit 2021-05-07 09:45:42 +02:00
parent dbd544be37
commit c036253ac5
2 changed files with 2 additions and 2 deletions

View file

@ -117,7 +117,7 @@ export default class ProviderPage {
fillLdapRequiredGeneralData(name: string, vendor: string) { fillLdapRequiredGeneralData(name: string, vendor: string) {
if (name) { if (name) {
cy.get(`[${this.ldapNameInput}]`).type(name); cy.get(`[${this.ldapNameInput}]`).clear().type(name);
} }
if (vendor) { if (vendor) {
cy.get(this.ldapVendorInput).click(); cy.get(this.ldapVendorInput).click();

View file

@ -83,7 +83,7 @@ export const LdapSettingsGeneral = ({
type="text" type="text"
id="kc-console-display-name" id="kc-console-display-name"
name="name" name="name"
defaultValue="" defaultValue="ldap"
ref={form.register({ ref={form.register({
required: { required: {
value: true, value: true,