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

        // Act
        File file = locateClientSideFile("file1.png");
        fileUpload.setValue(file);
        page.button.click();
        wait4EmptyMesssage(page.uploadedFiles);

        // Assert
        assertNoJavascriptErrors();
        assertFalse(page.messages.getAllMessages().isEmpty());
        assertEquals("Invalid file type.",
                page.messages.getMessage(0).getSummary());
        // Primefaces sends "empty" request if mode=simple skinSimple=true
        assertUploadedFiles(page.uploadedFiles);
        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