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) {
if (name) {
cy.get(`[${this.ldapNameInput}]`).type(name);
cy.get(`[${this.ldapNameInput}]`).clear().type(name);
}
if (vendor) {
cy.get(this.ldapVendorInput).click();

View file

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