diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 4818d17d..16695180 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -61,46 +61,3 @@ jobs: run: | rm -f ~/.gradle/caches/modules-2/modules-2.lock rm -f ~/.gradle/caches/modules-2/gc.properties - accessibility-test: - name: Run accessibility tests - runs-on: ubuntu-latest - permissions: - actions: read - services: - postgres: - image: postgres - env: - POSTGRES_USER: mdbenefits_test - POSTGRES_DB: mdbenefits_test - POSTGRES_PASSWORD: postgres - options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 - ports: - - 5432:5432 - steps: - - uses: actions/checkout@v4 - - name: Set up ChromeDriver - uses: nanasess/setup-chromedriver@v2.2.1 - with: - chromedriver-version: '115.0.5790.102' - - name: Set up JDK - uses: actions/setup-java@v4.0.0 - with: - distribution: 'adopt' - java-version: '17' - - name: Cache Gradle packages - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Test with Gradle - run: ./gradlew accessibilityTest - - name: Cleanup Gradle Cache - run: | - rm -f ~/.gradle/caches/modules-2/modules-2.lock - rm -f ~/.gradle/caches/modules-2/gc.properties diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index d2f03005..5004eb2e 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -106,16 +106,6 @@ server: servlet: session: persistent: true -ftps: - username: ${FTPS_USERNAME:-""} - password: ${FTPS_PASSWORD:-""} - upload-url: ${FTPS_UPLOAD_URL:-""} - upload-dir: ${FTPS_UPLOAD_DIR:-""} -pgp: - bucket-name: ${PGP_KEYS_DIR} - seckey-file-path: ${PGP_SECKEY_FILE_PATH} - pubkey-file-path: ${PGP_PUBKEY_FILE_PATH} - sigkey-password: ${PGP_SIGKEY_PASSWORD} management: endpoints: enabled-by-default: false diff --git a/src/test/java/org/mdbenefits/app/journeys/AccessibilityJourneyPageTest.java b/src/test/java/org/mdbenefits/app/journeys/AccessibilityJourneyPageTest.java deleted file mode 100644 index fe521129..00000000 --- a/src/test/java/org/mdbenefits/app/journeys/AccessibilityJourneyPageTest.java +++ /dev/null @@ -1,87 +0,0 @@ -package org.mdbenefits.app.journeys; - -import com.deque.html.axecore.results.Results; -import com.deque.html.axecore.results.Rule; -import com.deque.html.axecore.selenium.AxeBuilder; -import lombok.extern.slf4j.Slf4j; -import org.junit.jupiter.api.*; -import org.mdbenefits.app.utils.AbstractBasePageTest; -import org.mdbenefits.app.utils.AccessibilityTestPage; - -import java.io.IOException; -import java.net.URISyntaxException; -import java.util.ArrayList; -import java.util.List; - -import static org.assertj.core.api.Assertions.assertThat; - -@Slf4j -@Tag("a11y") -public class AccessibilityJourneyPageTest extends AbstractBasePageTest { - protected static List resultsList = new ArrayList<>(); - protected static Results results; - - @Override - @BeforeEach - public void setUp() throws IOException, URISyntaxException { - super.setUp(); - testPage = new AccessibilityTestPage(driver, localServerPort, messageSource); - } - @AfterEach - void afterEach() { - AxeBuilder builder = new AxeBuilder(); - results = builder.analyze(driver); - resultsList.addAll(((AccessibilityTestPage)testPage).resultsList); - } - - @AfterAll - static void tearDownAll() { - generateAccessibilityReport(results); - } - - @Test - void userCanCompleteDocumentUploadFlow() { - testPage.navigateToFlowScreen("laDocUpload/clientInfo"); - - // Client Info - testPage.enter("firstName", "Britney"); - testPage.enter("lastName", "Spears"); - testPage.enter("birthDate", "12/2/1981"); - testPage.enter("ssn", "000-00-1111"); - testPage.clickContinue(); - - // Go back and ensure that SSN value shown in input is decrypted - testPage.clickLink("< Go Back"); - testPage.clickContinue(); - - // How to add docs - testPage.clickContinue(); - - // Upload documents - assertThat(testPage.getTitle()).isEqualTo("Upload documents"); - assertThat(testPage.findElementById("form-submit-button").getAttribute("class").contains("display-none")).isTrue(); - uploadJpgFile(); - testPage.clickButton("I'm finished uploading"); - - // Confirm submit - testPage.clickButton("Yes, submit and finish"); - } - - private static void generateAccessibilityReport(Results results) { - results.setViolations(resultsList); - List violations = results.getViolations(); - log.info("Found " + violations.size() + " accessibility related issues."); - if (results.getViolations().size() > 0) { - violations.forEach(violation -> { - log.info("Rule at issue: " + violation.getId()); - log.info("Rule description: " + violation.getDescription()); - log.info("Rule help text: " + violation.getHelp()); - log.info("Rule help page: " + violation.getHelpUrl()); - log.info("Accessibility impact: " + violation.getImpact()); - log.info("Page at issue: " + violation.getUrl()); - log.info("HTML with issue: " + violation.getNodes().get(0).getHtml()); - }); - } - assertThat(violations.size()).isEqualTo(0); - } -}