async function selectMonitorType(page, monitorType = "dns") {
    const monitorTypeSelect = page.getByTestId("monitor-type-select");
    await expect(monitorTypeSelect).toBeVisible();
    await monitorTypeSelect.selectOption(monitorType);

    const selectedValue = await monitorTypeSelect.evaluate((select) => select.value);
    expect(selectedValue).toBe(monitorType);
}
Selects the monitor type from the dropdown.
@param {import('@playwright/test').Page} page - The Playwright page instance.
@param {string} monitorType - The monitor type to select (default is "dns").
@returns {Promise<void>} - A promise that resolves when the monitor type is selected.