|
@@ -9,7 +9,7 @@ test('Login page', async({page})=>{
|
|
const pim_menu_AddEmp = 'Add Employee';
|
|
const pim_menu_AddEmp = 'Add Employee';
|
|
|
|
|
|
// Increase the default timeout for this test
|
|
// Increase the default timeout for this test
|
|
- test.setTimeout(2000000);
|
|
|
|
|
|
+ test.setTimeout(200000);
|
|
|
|
|
|
//hitting the testing URL
|
|
//hitting the testing URL
|
|
await page.goto('https://testingone-osondemand.orangehrm.com/auth/login');
|
|
await page.goto('https://testingone-osondemand.orangehrm.com/auth/login');
|
|
@@ -76,7 +76,7 @@ test('Login page', async({page})=>{
|
|
|
|
|
|
|
|
|
|
//PIM menu i.e. clicking on "Add Employee" link
|
|
//PIM menu i.e. clicking on "Add Employee" link
|
|
- await page.waitForTimeout(3000);
|
|
|
|
|
|
+ await page.waitForTimeout(30000);
|
|
const menuItemList = await page.locator('.oxd-topbar-body-nav ul li a');
|
|
const menuItemList = await page.locator('.oxd-topbar-body-nav ul li a');
|
|
const menuItemListCount = await menuItemList.count();
|
|
const menuItemListCount = await menuItemList.count();
|
|
for(let i=0; i<menuItemListCount; i++){
|
|
for(let i=0; i<menuItemListCount; i++){
|