-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added major Tagged Test Filter configurations #639
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a8ad90c
Added major Tagged Test Filter configurations
Yemaneberhan-Lemma b519f40
Added tag for sample test scripts
Yemaneberhan-Lemma 82864e6
Fixed cypress-grep compatibility issue
Yemaneberhan-Lemma 98e35cc
Removed index.js from support directory
Yemaneberhan-Lemma 2f912d2
moved cypress related ones in ci.yml to a separate file cypress-tests…
Yemaneberhan-Lemma db12be9
removed version=prod part
Yemaneberhan-Lemma 1671ea1
Fixed naming inconsistency and removed unused placeholder variable
Yemaneberhan-Lemma 1206f5a
Fixed consistency issue with cypress commands naming in package.json
Yemaneberhan-Lemma 9d3d702
Fixes issues with tags and CI related
Yemaneberhan-Lemma 0f58d3c
fix: spacing and inconsistent ES6 usage
hussainweb 7eaf103
Merge branch 'main' into filtered_tests
hussainweb 9e295dc
fix: minor typo: missing trailing comma
hussainweb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!