@Test
    @Order(2)
    void basicSingleUploadTwice(Page page) {
        // Arrange
        FileUpload fileUpload = page.fileupload;
        assertEquals("", fileUpload.getValue());

        // Act
        File file1 = locateClientSideFile("file1.csv");
        fileUpload.setValue(file1);
        assertTrue(fileUpload.getFilename().startsWith(file1.getName()), fileUpload.getFilename());
        page.button.click();
        wait4File(page.uploadedFiles, 1, file1.getName());

        // Assert
        assertNoJavascriptErrors();
        assertUploadedFiles(page.uploadedFiles, file1);

        // Act
        File file2 = locateClientSideFile("file2.csv");
        fileUpload.setValue(file2);
        assertTrue(fileUpload.getFilename().startsWith(file2.getName()), fileUpload.getFilename());
        page.button.click();
        wait4File(page.uploadedFiles, 2, file2.getName());

        // Assert
        assertNoJavascriptErrors();
        assertUploadedFiles(page.uploadedFiles, file1, file2);
        assertConfiguration(fileUpload);
    }
Tests basic single file upload.
p:fileUpload mode=simple auto=false multiple=false (skinSimple=true)
primefaces-integration-tests/src/test/java/org/primefaces/integrationtests/fileupload/FileUpload001Test.java