Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

95
Visualizações
Incompatibility between testcafe and jquery mobile checkboxradio?

Testcafe has unusual behavior when operating a jQuery mobile checkboxradio widget. t.click() results in two click events being fired on the checkbox input. Both of these clicks appear to come from testcafe.

Working vanilla checkbox test:

import { Selector } from 'testcafe';

fixture`checkboxradio test`
    .page`https://html.form.guide/checkbox/html-form-with-checkbox/`;

test('Checkbox state from testcafe', async t => {
        const cb = await Selector('input[type=checkbox]');
        await t.expect(cb.nth(0).checked).eql(false)
                .click(cb.nth(0));

        await t.expect(cb.nth(0).checked).eql(true);
});

jQuery mobile checkbox (fails)

import { Selector } from 'testcafe';

fixture`checkboxradio test`
    .page`https://demos.jquerymobile.com/1.4.5/checkboxradio-checkbox/`;

test('Checkbox state from testcafe', async t => {
        const cb = await Selector('#checkbox-h-2a');
        await t.expect(cb.checked).eql(false)
                .click(cb);

        await t.expect(cb.checked).eql(true);
});

Anyone familiar with this issue? Any workarounds?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda