Actions
action #139067
closedcoordination #153280: [epic] Future automation of Agama
Create a global constant to be used for one minute value expressed in milliseconds in Agama
Status:
Rejected
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
Updated by JERiveraMoya about 1 year ago
- Description updated (diff)
- Target version deleted (
Current)
Interesting idea!
Actions