@Test
    @Order(1)
    @DisplayName("DataTable: filter and add row")
    void filterAndAddRow(Page page) {
        // Arrange
        DataTable dataTable = page.dataTable;
        dataTable.sort("Name");

        // Act
        dataTable.filter("Name", "Java");

        // Assert
        List<ProgrammingLanguage> langsFiltered = filterByName("Java");
        assertRows(dataTable, langsFiltered);

        for (int cnt = 0; cnt < 3; cnt++) {
            // Act
            int rows = dataTable.getRows().size();
            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