OBA Website automated using playwright
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

28 lines
950 B

const {test, expect} =require('@playwright/test')
import { LoginPage } from '../pages/LoginPage';
import { UserPage } from '../pages/UserPage';
test('User Button is working',async ({page})=>{
const login = new LoginPage(page);
await login.gotoLoginPage();
await login.loginWithCrtPassword();
await page.waitForTimeout(5000);
const user = new UserPage(page);
await user.userPageButton();
await page.waitForTimeout(5000);
await expect(await page.locator("//span[@class='flip-indecator']")).toBeVisible();
})
test('Active user Button check',async ({page})=>{
const login = new LoginPage(page);
await login.gotoLoginPage();
await login.loginWithCrtPassword();
await page.waitForTimeout(5000);
const user = new UserPage(page);
await user.activeUserButtonCheck();
await page.waitForTimeout(5000);
//await expect(await page.locator("//span[@class='flip-indecator']")).toBeVisible();
})