Skip to content

v1.7.0

Latest
Compare
Choose a tag to compare
@munichbughunter munichbughunter released this 13 Aug 05:59
6ea73dd

✨ Test execution report in text format (experimental)

This feature is currently in experimental stage and might see bigger changes.

Testla comes with a text reporter which logs all activities in a file and gives insights about the overall test execution result.

To activate the reporter announce it in your playwright.config.ts as follows.

reporter: [
    [
        // the reporter from testla
        '@testla/screenplay-playwright/reporter/text',
        // optional: the path to the output file, defaults to: screenplay-report.txt
        { outputFile: 'results.txt' },
    ],
    // other reporters
],

✨ Print structured logs to stdout

It is now possible to print structured logs to stdout. This can be achieved as follows.

import { STRUCTURED_LOGS_ENVVAR_NAME } from '@testla/screenplay'

// activating structured logs to stdout
process.env[STRUCTURED_LOGS_ENVVAR_NAME] = 'true';

✨ Mask input values in logs

Input values can be masked in the logs via the option { maskInLogs: true } which is suggested for handling passwords or other classified information in tests.

This option has been introduced for the following web actions: Fill.in, Type.in and Press.sequentially

🐞 Module has no exported member 'Reload'

If you want to reload a page we expect the import from the web actions:
This was actual not possible because the member Reload is not exported in index.ts under web

With the new version this issue is fixed now you can use the Reload action and import it as expected.

import { Click, Element, Navigate, Reload, Wait } from '@testla/screenplay-playwright/web';

🐞 Element Question - Ability Aliasing not used

In some cases you may want to ask questions and use an ability alias to find out about the status of the system under test.
This can be achieved as follows:

await actor.asks(
    Element.toBe.visible(locator).withAbilityAlias(alias),
);