import { checkScreenWithWarning } from '../helpers/visual-helpers.js';

describe('System Tab', () => {
    it('should navigate to the system tab', async () => {
        // Wait for the app to be ready
        await $('body').waitForExist();
        const settingsTab = await $('[data-testid="settings-tab"]');
        await settingsTab.click();
        const systemTab = await $('[data-testid="system-tab"]');
        await systemTab.click();
        await expect($('[data-testid="system-title"]')).toBeDisplayed();

        // Check for language selector
        const languageSelect = await $('[data-testid="language-select"]');
        await expect(languageSelect).toBeDisplayed();
    });

    it('should take a screenshot of the system page', async () => {
        await checkScreenWithWarning('system-page');
    });
});
