Skip to content

Commit

Permalink
required changes for cypress testing
Browse files Browse the repository at this point in the history
  • Loading branch information
navaneethsnair1 committed Sep 10, 2024
1 parent 597e5d3 commit f25ec4c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions src/test/cypressjs/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ module.exports = defineConfig({

viewportWidth: 1280,
e2e: {
supportFile: '/__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress/support/e2e.js',
specPattern: '/__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress/e2e/*.cy.js',
downloadsFolder: '__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress/downloads',
supportFile: '/Users/navaneeth/Desktop/openliberty.io/src/test/cypressjs/cypress/support/e2e.js',
specPattern: '/Users/navaneeth/Desktop/openliberty.io/src/test/cypressjs/cypress/e2e/*.cy.js',
downloadsFolder: '/Users/navaneeth/Desktop/openliberty.io/src/test/cypressjs/cypress/downloads',
setupNodeEvents(on, config) {
on('task', {
accessibilityChecker: require('cypress-accessibility-checker/plugin')
});
}
},
})
3 changes: 2 additions & 1 deletion src/test/cypressjs/cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands'
import './commands';
import 'cypress-accessibility-checker';
8 changes: 6 additions & 2 deletions src/test/cypressjs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"devDependencies": {
"cypress": "^13.11.0",
"cypress-accessibility-checker": "^3.1.71"
},
"dependencies": {
"cypress": "^12.12.0"
"axios": "^1.7.2"
}
}
}

0 comments on commit f25ec4c

Please sign in to comment.