Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testcafe, test is not running?

I'm trying to get started with Testcafe.

I have installed it globally with npm and I'm following the official example from https://devexpress.github.io/testcafe/documentation/getting-started/

import { Selector } from 'testcafe';

fixture `Getting Started`
    .page `http://devexpress.github.io/testcafe/example`;

test('My first test', async t => {
    await t
        .typeText('#developer-name', 'John Smith')
        .click('#submit-button');

    const articleHeader = await Selector('.result-content').find('h1');

    // Obtain the text of the article header
    let headerText = await articleHeader.innerText;
});

I'm on an old Ubuntu (12.04 I think) using chromium.

I launch the test and can see the browser load the page and the message "Getting started" shows on the console.

However nothing happens after that. I dont see the name of the test, results or anything. Nothing happens on the browser either (no text being typed).

It is probably something silly, but I cant really seem to find what I'm missing or doing wrong.

like image 962
Marianna Smidth Buschle Avatar asked Mar 09 '26 04:03

Marianna Smidth Buschle


1 Answers

As the question's author found, either the nodejs or chromium version was the issue.

Upgrading to the latest versions resolved the issue.

like image 180
Alex Skorkin Avatar answered Mar 10 '26 18:03

Alex Skorkin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!