-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from bcgov/feat--ssoteam-1369-sso-tests
Feat ssoteam 1369 sso tests
- Loading branch information
Showing
10 changed files
with
375 additions
and
41 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
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,55 @@ | ||
## Checklist for Assessing Impact on Automated End-to-End Tests in Cypress | ||
|
||
### 1. **UI Changes** | ||
|
||
- [ ] **Visual Changes:** Have any visual elements (e.g., buttons, links, layouts) been modified, added, or removed? | ||
- [ ] **CSS Changes:** Are there updates to styles that could affect element visibility or position? | ||
- [ ] **Responsive Design Adjustments:** Have there been changes to how the application looks or behaves at different screen sizes? | ||
|
||
### 2. **Functionality Updates** | ||
|
||
- [ ] **New Features:** Are there any new functionalities that require additional tests? | ||
- [ ] **Modified Features:** Have existing features been altered in a way that changes their workflow or output? | ||
- [ ] **Deprecated Features:** Have any features or functionalities been removed from the application? | ||
|
||
### 3. **Navigation Changes** | ||
|
||
- [ ] **URL Changes:** Have there been updates to the URLs of any pages (e.g., changes in routing)? | ||
- [ ] **Navigation Flow:** Is there a change in how users navigate through the application (e.g., new menu items, changes in page hierarchy)? | ||
|
||
### 4. **Backend Changes** | ||
|
||
- [ ] **API Modifications:** Are there changes to the APIs (endpoints, request/response structure) that the frontend interacts with? | ||
- [ ] **Database Changes:** Have there been modifications to the database schema or the data that might affect the frontend? | ||
|
||
### 5. **Performance Optimizations** | ||
|
||
- [ ] **Loading Times:** Have there been changes that significantly alter the loading times of pages or resources? | ||
- [ ] **Asynchronous Operations:** Are there updates to how asynchronous operations (e.g., AJAX calls) are handled? | ||
|
||
### 6. **Security Updates** | ||
|
||
- [ ] **Authentication/Authorization Changes:** Have there been updates to the login/logout flow, session management, or access controls? | ||
- [ ] **Input Validation/Sanitization:** Are there changes in how user input is validated or sanitized? | ||
|
||
### 7. **Third-party Integrations** | ||
|
||
- [ ] **New Integrations:** Have new third-party services or libraries been integrated? | ||
- [ ] **Updated Integrations:** Have existing integrations been updated or modified? | ||
|
||
### 8. **Testing Environment** | ||
|
||
- [ ] **Configuration Changes:** Are there changes to the Cypress configuration, test data, or environment variables? | ||
- [ ] **Cypress Version Update:** Has the version of Cypress or any plugins been updated? | ||
|
||
### 9. **Code Refactoring** | ||
|
||
- [ ] **Refactored Code:** Has there been significant refactoring of the codebase that could affect the selectors or logic used in tests? | ||
- [ ] **Selector Changes:** Have the selectors (e.g., IDs, classes, attributes) used to target elements in tests been changed? | ||
|
||
### Communication Tips | ||
|
||
- **Detail Specific Changes:** When communicating changes, be specific about what has been altered, added, or removed. | ||
- **Prioritize Impact:** Highlight changes that are likely to have a high impact on existing tests. | ||
- **Collaborate Early:** Engage with test automation specialists early in the development cycle to discuss potential impacts. | ||
- **Share Documentation:** Provide access to updated documentation, API schemas, and design mockups to help in adjusting tests accordingly. |
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
12 changes: 1 addition & 11 deletions
12
testing/cypress/e2e/integration-990-deleteAllIntegrations.cy.ts
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,22 +1,12 @@ | ||
import Request from '../appActions/Request'; | ||
|
||
describe('Delete All Integrations', () => { | ||
let req = new Request(); | ||
it('Delete All Requests as admin', function () { | ||
cy.setid('admin').then(() => { | ||
cy.login(null, null, null, null); | ||
}); | ||
req.deleteAllRequests(); | ||
cy.logout(null); | ||
cy.clearAllSessionStorage(); | ||
}); | ||
|
||
it('Delete All Requests as default user', function () { | ||
cy.setid(null).then(() => { | ||
cy.login(null, null, null, null); | ||
}); | ||
let req = new Request(); | ||
req.deleteAllRequests(); | ||
cy.logout(null); | ||
cy.clearAllSessionStorage(); | ||
}); | ||
}); |
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,39 @@ | ||
// Creation of Integration request variants | ||
|
||
import data from '../fixtures/sso-requests.json'; // The data file will drive the tests | ||
import Request from '../appActions/Request'; | ||
import Utilities from '../appActions/Utilities'; | ||
let testData = data; | ||
let tempData = data; | ||
let util = new Utilities(); | ||
|
||
describe('Create SSO Integration Requests', () => { | ||
beforeEach(() => { | ||
cy.setid(null).then(() => { | ||
cy.login(null, null, null, null); | ||
}); | ||
}); | ||
|
||
afterEach(() => { | ||
cy.logout(null); | ||
}); | ||
|
||
after(() => { | ||
cy.writeFile('cypress/fixtures/ssorequestsafter.json', tempData); | ||
}); | ||
|
||
// Iterate through the JSON file and create a team for each entry | ||
// The set up below allows for reporting on each test case | ||
testData.forEach((data, index) => { | ||
if (util.runOk(data)) { | ||
it(`Create ${data.create.projectname} (Test ID: ${data.create.test_id}) - ${data.create.description}`, () => { | ||
let req = new Request(); | ||
req.showCreateContent(data); | ||
req.populateCreateContent(data); | ||
cy.wrap(req.createRequest()).then(() => { | ||
tempData[index].id = Cypress.env('test'); | ||
}); | ||
}); | ||
} | ||
}); | ||
}); |
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
Oops, something went wrong.