@Test
    @Order(8)
    @DisplayName("DataTable: add row without filter or sort applied")
    void addRowWithoutFilterOrSortApplied(Page page) {
        // Arrange
        DataTable dataTable = page.dataTable;
        int rows = dataTable.getRows().size();

        // Act
        page.buttonAdd.click();

        // Assert - one row more than before
        assertEquals(rows + 1, dataTable.getRows().size());

        assertNoJavascriptErrors();
    }
Add and remove rows from filtered DataTable
https://github.com/primefaces/primefaces/issues/7336
primefaces-integration-tests/src/test/java/org/primefaces/integrationtests/datatable/DataTable021Test.java