/*
 *                                      Copyright 2025 WebPros International, LLC
 *                                                           All rights reserved.
 * copyright@cpanel.net                                         http://cpanel.net
 * This code is subject to the cPanel license. Unauthorized copying is prohibited.
 */

import { test as baseTest, type cpanelFixtures } from "@fixtures/cpanel/cpanel";
import { SitejetBannerAI } from "@page/plugins/sitejet/sitejet_banner_ai";

export interface sitejetBannerFixtures extends cpanelFixtures {
    /** A worker instance of the SitejetBannerAI page object */
    sitejetBanner: SitejetBannerAI;
}

/** @internal */
export const test = baseTest.extend<sitejetBannerFixtures>({
    sitejetBanner: async ({ page, workerCpanelAccount }, use) => {
        const sitejetBanner = new SitejetBannerAI(page, workerCpanelAccount);
        await sitejetBanner.login();
        await use(sitejetBanner);
    },
});

export { expect } from "@playwright/test";
