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.

Upvotes: 3

Views: 1116

Answers (1)

Alex Skorkin
Alex Skorkin

Reputation: 4274

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

Upgrading to the latest versions resolved the issue.

Upvotes: 1

Related Questions