<commit_before>/// <reference types="Cypress" />

function openSystemInformation(){
    cy.get('[data-element="global-help"]').click();
    cy.get('.umb-help-list-item').last().should('be.visible').click();
    cy.get('.umb-drawer-content').scrollTo('bottom', {ensureScrollable : false});
}

context('System Information', () => {

    beforeEach(() => {
        //arrange
        cy.umbracoLogin(Cypress.env('username'), Cypress.env('password'));
    });

    it('Check System Info Displays', () => {
        openSystemInformation();
        cy.get('.table').find('tr').should('have.length', 10);

    });

    it('Checks language displays correctly after switching', () => {
        //Navigate to edit user and change language
        openSystemInformation();
        cy.contains('Current Culture').parent().should('contain', 'en-US');
        cy.contains('Current UI Culture').parent().should('contain', 'en-US');
        cy.get('.umb-button__content').click();
        cy.get('[data-element="global-user"]').click();
        cy.get('[alias="editUser"]').click();
        cy.get('.input-block-level').last().select('Danish (Denmark)');
        cy.umbracoButtonByLabelKey('buttons_save').click();
        //Refresh site to display new language
        cy.reload();
        openSystemInformation();
        //Assert
        cy.contains('Current Culture').parent().should('contain', 'da-DK');
        cy.contains('Current UI Culture').parent().should('contain', 'da-DK');

        //Clean
        cy.get('.umb-button__content').click();
        cy.get('[data-element="global-user"]').click();
        cy.get('[alias="editUser"]').click();
        cy.get('.input-block-level').last().select('English (United States)');
        cy.umbracoButtonByLabelKey('buttons_save').click();
        cy.reload();
    });
});<commit_msg>fixed cypress test<commit_after>/// <reference types="Cypress" />

function openSystemInformation(){
    cy.get('[data-element="global-help"]').click();
    cy.get('.umb-help-list-item').last().should('be.visible').click();
    cy.get('.umb-drawer-content').scrollTo('bottom', {ensureScrollable : false});
}

context('System Information', () => {

    beforeEach(() => {
        //arrange
        cy.umbracoLogin(Cypress.env('username'), Cypress.env('password'));
    });

    it('Check System Info Displays', () => {
        openSystemInformation();
        cy.get('.table').find('tr').should('have.length', 10);

    });

    it('Checks language displays correctly after switching', () => {
        //Navigate to edit user and change language
        openSystemInformation();
        cy.contains('Current Culture').parent().should('contain', 'en-US');
        cy.contains('Current UI Culture').parent().should('contain', 'en-US');
        cy.get('.umb-button__content').click();
        cy.get('[data-element="global-user"]').click();
        cy.get('[alias="editUser"]').click();
        cy.get('.input-block-level').last().select('Danish (Denmark)');
        cy.umbracoButtonByLabelKey('buttons_save').click();
        //Refresh site to display new language
        cy.reload();
        openSystemInformation();
        //Assert
        cy.contains('Current Culture').parent().should('contain', 'da-DK');
        cy.contains('Current UI Culture').parent().should('contain', 'da-DK');
        cy.reload();
        //Clean
        cy.get('[data-element="global-user"]').click();
        cy.get('[alias="editUser"]').click();
        cy.get('.input-block-level', {timeout: 10000}).last().select('English (United States)');
        cy.umbracoButtonByLabelKey('buttons_save').click();
        cy.reload();
    });
});
{'fraction_non_alphanumeric': 0.2125378058839703, 'fraction_numerical': 0.002474566950783613, 'mean_word_length': 3.157714285714286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1797115', 'n_tokens_mistral': 1063, 'n_tokens_neox': 1036, 'n_words': 154}