Project

General

Profile

action #139067

Updated by JERiveraMoya 5 months ago

#### Motivation 
 **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.: 

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

 **Todo** 

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

 ```js 

 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: 

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


 #### Acceptance criteria **Acceptance criteria** 
 **AC1**: declare a global const `minute` to make timeouts more readable ed use it where needs 

Back