Project

General

Profile

Actions

action #139067

open

coordination #153280: [epic] Future automation of Agama

Create a global constant to be used for one minute value expressed in milliseconds in Agama

Added by lmanfredi 7 months ago. Updated 3 months ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
2023-11-03
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Create a global constant to be used for one minute value in Agama.
This constant could be import in each POM/tests for custom timeout settings.

E.g.:

await expect(this.aLocator).toBeVisible({timeout: 2 * minute});

Todo

Declare inside playwright.config.ts a new constant and export it:


export const minute = 60 * 1000;

Then update each files where there is a local declaration for the minute or a custom timeout settings.
For use it in POM/tests, import the constant before use it:

import { minute } from '../playwright.config';

Acceptance criteria

AC1: declare a global const minute to make timeouts more readable

Actions #1

Updated by JERiveraMoya 3 months ago

  • Description updated (diff)
  • Target version deleted (Current)

Interesting idea!

Actions #2

Updated by JERiveraMoya 3 months ago

  • Parent task set to #153280
Actions

Also available in: Atom PDF