-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added major Tagged Test Filter configurations (#639)
- Loading branch information
1 parent
cdb1cc7
commit c2553cc
Showing
16 changed files
with
487 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Cypress Tests | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 0' # Weekly on Sunday midnight | ||
|
||
jobs: | ||
cypress_tests: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
CYPRESS_ADMIN_USERNAME: ct-admin | ||
CYPRESS_ADMIN_PASSWORD: ct-admin | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup DDEV | ||
uses: ddev/github-action-setup-ddev@v1 | ||
with: | ||
autostart: false | ||
|
||
- name: Set the platform.sh token | ||
run: | | ||
ddev config global --web-environment-add="PLATFORMSH_CLI_TOKEN=${{ secrets.PLATFORMSH_CLI_TOKEN }}" | ||
ddev start | ||
- name: Install dependencies | ||
run: | | ||
ddev composer install | ||
ddev pull platform -y | ||
cd web/themes/custom/contribtracker | ||
npm ci --prefer-offline --no-audit | ||
- name: Change admin password for Cypress | ||
run: ddev drush upwd "$CYPRESS_ADMIN_USERNAME" "$CYPRESS_ADMIN_PASSWORD" | ||
|
||
- name: Run expensive tests (weekly) | ||
run: ddev cypress-run --env grepTags=expensive | ||
|
||
- name: Save Cypress recordings | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cypress-recordings | ||
path: | | ||
web/themes/custom/contribtracker/cypress/screenshots | ||
web/themes/custom/contribtracker/cypress/videos | ||
retention-days: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
import { defineConfig } from 'cypress'; | ||
|
||
import grepPlugin from '@cypress/grep/src/plugin'; | ||
export default defineConfig({ | ||
projectId: 'contrib-tracker', | ||
chromeWebSecurity: false, // To Bypass Same-Origin Policy - Useful for social-media-link-check test | ||
video: process.env.CYPRESS_VIDEO !== 'false', // Defaults to true unless explicitly set to 'false' | ||
e2e: { | ||
baseUrl: process.env.CYPRESS_BASE_URL || 'https://contrib.axelerant.com', // Default to prod url if no base URL is set | ||
env: { | ||
grepTags: '', | ||
}, | ||
setupNodeEvents(on, config) { | ||
grepPlugin(config); // Use the imported plugin directly | ||
return config; | ||
}, | ||
}, | ||
}); |
2 changes: 1 addition & 1 deletion
2
web/themes/custom/contribtracker/cypress/e2e/auto-suggestion-check.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
web/themes/custom/contribtracker/cypress/e2e/form-date-picker-check.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
web/themes/custom/contribtracker/cypress/e2e/form-filter-check.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
web/themes/custom/contribtracker/cypress/e2e/form-reset-button-check.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
web/themes/custom/contribtracker/cypress/e2e/page-sublink-check.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
web/themes/custom/contribtracker/cypress/e2e/pagination-filter-check.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
web/themes/custom/contribtracker/cypress/e2e/social-media-link-check.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
import './commands'; | ||
import 'cypress-real-events'; // cypress inbuilt trigger() will only affect events in JavaScript and will not trigger any effects in CSS. See for more details: https://docs.cypress.io/api/commands/hover | ||
|
||
import registerCypressGrep from '@cypress/grep'; | ||
registerCypressGrep(); |
Oops, something went wrong.