<commit_before>import DashTable from 'cypress/DashTable';

describe('delete', () => {
    beforeEach(() => cy.visit('http://localhost:8080'));

    it('can delete row', () => {
        DashTable.getCell(0, 0).within(() => cy.get('.dash-cell-value').should('have.html', '1'));
        DashTable.getDelete(0).click();
        DashTable.getCell(0, 0).within(() => cy.get('.dash-cell-value').should('have.html', '2'));
    });

    it('can delete row when sorted', () => {
        cy.get('tr th.column-0 .sort').last().click({ force: true });
        DashTable.getCell(0, 0).within(() => cy.get('.dash-cell-value').should('have.html', '1'));
        DashTable.getDelete(0).click();
        DashTable.getCell(0, 0).within(() => cy.get('.dash-cell-value').should('have.html', '2'));
    });
});<commit_msg>Refactor standalone/delete_row_test to sort twice<commit_after>import DashTable from 'cypress/DashTable';

describe('delete', () => {
    beforeEach(() => cy.visit('http://localhost:8080'));

    it('can delete row', () => {
        DashTable.getCell(0, 0).within(() => cy.get('.dash-cell-value').should('have.html', '1'));
        DashTable.getDelete(0).click();
        DashTable.getCell(0, 0).within(() => cy.get('.dash-cell-value').should('have.html', '2'));
    });

    it('can delete row when sorted', () => {
        cy.get('tr th.column-0 .sort').last().click({ force: true }).click({ force: true });
        DashTable.getCell(0, 0).within(() => cy.get('.dash-cell-value').should('have.html', '4999'));
        DashTable.getDelete(0).click();
        DashTable.getCell(0, 0).within(() => cy.get('.dash-cell-value').should('have.html', '4998'));
    });
});
{'fraction_non_alphanumeric': 0.25285285285285286, 'fraction_numerical': 0.026426426426426425, 'mean_word_length': 3.502702702702703, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '4733666', 'n_tokens_mistral': 587, 'n_tokens_neox': 551, 'n_words': 83}