diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 99c1ad4..c732fb9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set Up Kong Manager run: | @@ -29,7 +29,7 @@ jobs: docker ps -a - name: Run Cypresss tests - uses: cypress-io/github-action@v5 + uses: cypress-io/github-action@v6 continue-on-error: true env: TESTS: ${{ inputs.tests }} diff --git a/cypress/KongBase/KongElement.js b/cypress/KongBase/KongElement.js index 07f994a..1798a7d 100644 --- a/cypress/KongBase/KongElement.js +++ b/cypress/KongBase/KongElement.js @@ -8,6 +8,7 @@ export default class KongElement { return cy.wrap($el.find(`[data-testid="${uatId[i]}"]`)); } else { console.warn(`Element with data-testid ${uatId[i]} not found`); + cy.log(`Element with data-testid ${uatId[i]} not found`); } } // If element not found, log and return null diff --git a/cypress/e2e/route.cy.js b/cypress/e2e/route.cy.js index 0524b7c..3bf6b8c 100644 --- a/cypress/e2e/route.cy.js +++ b/cypress/e2e/route.cy.js @@ -44,7 +44,7 @@ describe('test for route creation', () => { cy.visit(`${clientBase}/mock`); cy.get('body').should('contain', 'httpbin.org'); } else { - throw new ERROR('route creation failed'); + throw new Error('route creation failed'); } })