How to use the testcafe.t.typeText function in testcafe

To help you get started, we’ve selected a few testcafe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gridgain / gridgain / modules / web-console / e2e / testcafe / page-models / pageSignin.js View on Github external
async login(email, password) {
        return await t
            .typeText(this.email.control, email)
            .typeText(this.password.control, password)
            .click(this.signinButton);
    }
};
github DevExpress / testcafe / test / server / data / test-suites / typescript-defs / roles.ts View on Github external
const someUser = Role('http://localhost:3000/fixtures/api/es-next/roles/pages/login-page.html', async() => {
    await t
        .typeText('input[name="name"]', 'SomeUser')
        .click('input[value="LogIn"]');
}, { preserveUrl: false });
github TheBrainFamily / TheBrain2.0 / testing / testHelpers / TestCafeElement.js View on Github external
async setValue (value) {
    await t.typeText(Selector(this.selector), value)
  }
github gentics / mesh-ui / testcafe / page-object / admin / project / project-list.ts View on Github external
export async function enterSearchTerm(term: string) {
        await t.typeText(selectors.gtxInputWithLabel('name'), term);
    }
github gentics / mesh-ui / testcafe / page-object / admin / user / user-detail.ts View on Github external
const typeIfDefined = async (prop: string) => {
        if ((user as any)[prop]) {
            await t.typeText(formControlInput(prop), (user as any)[prop]);
        }
    };
    await typeIfDefined('userName');
github mirumee / saleor-dashboard / .testcafe / Models / loginPageModel.js View on Github external
async performLogin(putEmail, putPassword) {
    await t
      .typeText(this.email, putEmail)
      .typeText(this.password, putPassword)
      .click(this.submitButton);
  }
}
github gridgain / gridgain / modules / web-console / e2e / testcafe / components / modalInput.js View on Github external
async enterValue(value) {
        await t.typeText(this.valueInput.control, value);
    }
github gentics / mesh-ui / testcafe / page-object / login.ts View on Github external
export async function login(username: string, password: string, newPassword?: string) {
        await t
            .typeText(formControlInput('username'), username, { replace: true })
            .typeText(formControlInput('password'), password, { replace: true });
        if (newPassword) {
            await t
                .typeText(formControlInput('newPassword'), newPassword, { replace: true })
                .typeText(formControlInput('newPasswordRepeat'), newPassword, { replace: true });
        }
        await t.click(Selector('button').withExactText('LOG IN'));
    }
github frappe / video / lib / desk.js View on Github external
async login(username, password) {
		await t
			.typeText("#login_email", username)
			.typeText("#login_password", password)
			.click(".btn-login")
			.expect(Selector("#body_div").exists).ok()

		await this.add_rubik_font()
		await this.hide_testcafe_bar()
	},
github ovh / cds / ui / e2e / pages / project-create.ts View on Github external
async createProject(name: string, key: string, group: string) {
    await t
      .typeText(this.projectNameInput, name)
      .expect(this.projectKeyInput.value).eql(key)
      .typeText(this.groupSelect, group).pressKey('enter')
      .expect(this.getLocation()).eql(config.baseUrl + '/project/' + key);
  }
}