From 8dd121bf6cda36e6dd22d09e3efd7a34337df9ec Mon Sep 17 00:00:00 2001 From: Dulip Withanage Date: Mon, 17 Jun 2024 19:56:15 +0200 Subject: [PATCH] Add github ations for OJS 3.3 (#4319) --- .github/workflows/stable-3_3_0.yml | 57 +++++++++++++++++++ .../60-content/AmwandengaSubmission.spec.js | 4 +- 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/stable-3_3_0.yml diff --git a/.github/workflows/stable-3_3_0.yml b/.github/workflows/stable-3_3_0.yml new file mode 100644 index 00000000000..631c3e80833 --- /dev/null +++ b/.github/workflows/stable-3_3_0.yml @@ -0,0 +1,57 @@ +on: + push: + branches: + - '*' + pull_request: + branches: + ['stable-3_3_0'] +name: ojs +jobs: + ojs: + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + include: + - php-version: 8.0 + validate: 'validate' + - php-version: 7.3 + database: pgsql + test: 'test' + - php-version: 7.3 + database: mysql + test: 'test' + - php-version: 7.4 + database: pgsql + test: 'test' + - php-version: 7.4 + database: mysql + test: 'test' + - php-version: 8.0 + database: mysql + test: 'test' + - php-version: 8.0 + database: pgsql + test: 'test' + - php-version: 8.1 + database: mysql + test: 'test' + - php-version: 8.1 + database: pgsql + test: 'test' + - php-version: 8.2 + database: mysql + test: 'test' + - php-version: 8.2 + database: pgsql + test: 'test' + + + name: ojs + steps: + - uses: pkp/pkp-github-actions@v1 + with: + node_version: 12 + dataset_branch: 'stable-3_3_0' + DATASETS_ACCESS_KEY: ${{secrets.DATASETS_ACCESS_KEY}} + DEBUG_IN_TMATE: false diff --git a/cypress/tests/data/60-content/AmwandengaSubmission.spec.js b/cypress/tests/data/60-content/AmwandengaSubmission.spec.js index f2c13944ff3..806c3c4f738 100644 --- a/cypress/tests/data/60-content/AmwandengaSubmission.spec.js +++ b/cypress/tests/data/60-content/AmwandengaSubmission.spec.js @@ -252,7 +252,7 @@ describe('Data suite tests', function() { cy.get('#contributors-grid #component-grid-users-author-authorgrid-row-3 .show_extras').click(); cy.get('#component-grid-users-author-authorgrid-row-3-control-row [id*="editAuthor-button"]').click(); cy.wait(1500); // Wait for the form to settle - cy.get('[name="familyName[en_US]"]').type(' Version 2', {delay: 0}); + cy.get('[name="familyName[en_US]"]').type(' Version 2', {delay: 5}); cy.get('[id^="submitFormButton"]').contains('Save').click(); cy.contains('Author edited.'); cy.wait(1500); // Wait for the grid to reload @@ -263,7 +263,9 @@ describe('Data suite tests', function() { cy.contains('Add galley'); cy.get('#representations-grid .show_extras').click(); cy.get('[id*="editGalley-button"]').click(); + cy.wait(1500); cy.get('#editArticleGalleyMetadataTabs [name="label"]').type(' Version 2'); + cy.wait(1500); cy.get('#editArticleGalleyMetadataTabs [name="urlPath"]').type('pdf'); cy.get('#articleGalleyForm button').contains('Save').click(); cy.wait(1500);