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.
 

22 lines
606 B

const {test, expect} =require('@playwright/test')
import { LoginPage } from '../pages/LoginPage';
import { CouponPage } from '../pages/Couponpage';
test('TC-COU-01: Coupon Button working?',async ({page})=>{
//Navigate to Login Page
const login = new LoginPage(page);
await login.gotoLoginPage();
await login.loginWithCrtPassword();
await page.waitForTimeout(5000);
//Navigate to coupon page
const coupon = new CouponPage(page);
await coupon.viewCoupon();
//Assertion
await expect(await page.locator("//th[normalize-space()='Coupon Code']")).toBeVisible();
})