forked from giranm/pd-live-react
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #185 from PagerDuty/release/0.9.0-beta.0
- Loading branch information
Showing
44 changed files
with
1,464 additions
and
1,534 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
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,3 @@ | ||
# MUST match .node-version | ||
nodejs 16.19.0 | ||
nodejs 18.16.1 | ||
yarn 1.22.19 |
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 |
---|---|---|
|
@@ -16,10 +16,11 @@ import { | |
runExternalSystemSync, | ||
runResponsePlay, | ||
checkActionAlertsModalContent, | ||
checkPopoverContent, | ||
checkIncidentCellContent, | ||
checkNoIncidentsSelected, | ||
// activateButton, | ||
// deactivateButton, | ||
checkIncidentCellContentHasLink, | ||
manageIncidentTableColumns, | ||
priorityNames, | ||
} from '../../support/util/common'; | ||
|
||
|
@@ -89,6 +90,32 @@ describe('Manage Open Incidents', { failFast: { enabled: false } }, () => { | |
}); | ||
}); | ||
|
||
it('Add note with URL to singular incident', () => { | ||
const note = 'This note has a URL example.com included'; | ||
const incidentIdx = 2; | ||
selectIncident(incidentIdx); | ||
|
||
cy.get(`@selectedIncidentId_${incidentIdx}`).then((incidentId) => { | ||
addNote(note); | ||
checkActionAlertsModalContent('have been updated with a note'); | ||
checkIncidentCellContent(incidentId, 'Latest Note', note); | ||
checkIncidentCellContentHasLink(incidentId, 'Latest Note', 'example.com', 'http://example.com'); | ||
}); | ||
}); | ||
|
||
it('Add note with email to singular incident', () => { | ||
const note = 'This note has an email [email protected] included'; | ||
const incidentIdx = 3; | ||
selectIncident(incidentIdx); | ||
|
||
cy.get(`@selectedIncidentId_${incidentIdx}`).then((incidentId) => { | ||
addNote(note); | ||
checkActionAlertsModalContent('have been updated with a note'); | ||
checkIncidentCellContent(incidentId, 'Latest Note', note); | ||
checkIncidentCellContentHasLink(incidentId, 'Latest Note', '[email protected]', 'mailto:[email protected]'); | ||
}); | ||
}); | ||
|
||
// Assumed environment has 3 levels on escalation policy | ||
for (let escalationLevel = 1; escalationLevel < 4; escalationLevel++) { | ||
it(`Escalate singular incident to level: ${escalationLevel}`, () => { | ||
|
@@ -119,11 +146,20 @@ describe('Manage Open Incidents', { failFast: { enabled: false } }, () => { | |
}); | ||
|
||
it('Add responder (User A1) to singular incident', () => { | ||
const columns = [ | ||
['Responders', 'responders'], | ||
]; | ||
manageIncidentTableColumns('add', columns.map((column) => column[1])); | ||
const responders = ['User A1']; | ||
const message = 'Need help with this incident'; | ||
selectIncident(0); | ||
const incidentIdx = 0; | ||
selectIncident(incidentIdx); | ||
addResponders(responders, message); | ||
checkActionAlertsModalContent('Requested additional response for incident(s)'); | ||
cy.get(`@selectedIncidentId_${incidentIdx}`).then((incidentId) => { | ||
checkIncidentCellContent(incidentId, 'Responders', 'UA'); | ||
checkPopoverContent(incidentId, 'Responders', '[email protected]'); | ||
}); | ||
}); | ||
|
||
it('Add responder (Team A) to singular incident', () => { | ||
|
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
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.