"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.expectTextWithPagination = void 0;
const expectLocatorWithPagination_1 = require("./expectLocatorWithPagination");
async function expectTextWithPagination(page, text, options) {
    const { shouldBeVisible = true, totalTimeout = 30000, maxRetries = 5, } = options || {};
    const item = page.getByText(text).last();
    await (0, expectLocatorWithPagination_1.expectLocatorWithPagination)(page, item, {
        shouldBeVisible,
        clickLocator: options?.clickLocator,
        totalTimeout,
        maxRetries,
    });
}
exports.expectTextWithPagination = expectTextWithPagination;
