import { Locator, Page, expect } from "@playwright/test";
import { WebAllLocators } from "../locator";


export class SellerReportProfile {
    readonly page: Page;
    readonly locators: WebAllLocators;

    constructor(page: Page) {
        this.page = page;
        this.locators = new WebAllLocators(page);
    }
    
    async sellerReportProfile(option: string) {
        await this.locators.sellerReportIssueIcon.click();
        await this.page.waitForTimeout(2000);
        await this.locators.reportIssueReason.selectOption(option);
        await this.page.waitForTimeout(2000);
        await this.locators.reportIssueSubmitButton.click();
        await this.page.waitForTimeout(2000);
        await expect(this.locators.reportProfileSuccessToast).toBeVisible(); 
    }
}
