From c20029c23ecc5f774efdbf3aca11a1efc57ba3bb Mon Sep 17 00:00:00 2001 From: Mateusz Wisniewski Date: Thu, 12 Dec 2024 15:06:38 +0100 Subject: [PATCH] tests: fix cron job acc test (#3526) * tests: fix cron job acc test * adjust acc workflow * adjust acc workflow --- .github/workflows/accessibility-tests.yml | 6 ++++++ .../tests/accessibility/test-acc-cron-jobs.spec.js | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/accessibility-tests.yml b/.github/workflows/accessibility-tests.yml index b0ecc60536..78b66b255f 100644 --- a/.github/workflows/accessibility-tests.yml +++ b/.github/workflows/accessibility-tests.yml @@ -3,6 +3,12 @@ name: Accessibility Tests on: schedule: - cron: "0 6 * * 1" + pull_request_target: + types: [opened, edited, synchronize, reopened, ready_for_review] + paths: + - ".github/workflows/accessibility-tests.yml" + - "tests/integration/tests/accessibility/**" + - "tests/integration/support/**" jobs: run-accessibility-tests: diff --git a/tests/integration/tests/accessibility/test-acc-cron-jobs.spec.js b/tests/integration/tests/accessibility/test-acc-cron-jobs.spec.js index c76440b73b..ec3540e1db 100644 --- a/tests/integration/tests/accessibility/test-acc-cron-jobs.spec.js +++ b/tests/integration/tests/accessibility/test-acc-cron-jobs.spec.js @@ -91,8 +91,9 @@ context('Accessibility test Cron Jobs', () => { .clear() .type('*', { force: true }); - cy.get( - '[aria-label="Schedule: At 12:00 AM, on day 1 of the month, expanded"]', + cy.contains( + 'ui5-label', + 'Schedule: At 12:00 AM, on day 1 of the month', ).click(); cy.contains('Command').click();