-
Notifications
You must be signed in to change notification settings - Fork 2
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
731 multiple support queues #67
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
4da1c42
Release 2022.4.4
whorka 338bab9
Merge branch 'canary' into stable
whorka 4bda905
Release 2022.4.5
whorka 7e5f003
Merge branch 'canary' into stable
whorka 26324eb
Release 2022.4.6
whorka 3e8403c
Merge branch 'canary' into stable
whorka 4adc9a0
Release 2022.4.7
whorka 5ac8236
Merge branch 'canary' into stable
whorka 96180f4
Release 2022.4.8
whorka 05a6ef7
Merge branch 'canary' into stable
whorka 8c3224e
fix(build): gh #698 manually clean up CHANGELOG.md
whorka c0ead9d
Release 2022.4.9
whorka 4f7b0e8
fix(build): gh #698 manually clean up CHANGELOG.md
whorka a5536ec
Release 2022.4.10
whorka 59b11c3
Merge branch 'canary' into stable
abujeda ef6ddbf
Release 2022.4.11
94070a7
Merge branch 'canary' into stable
whorka f04615c
Release 2022.4.12
whorka 06d1333
Merge branch 'canary' into stable
whorka eb1c552
Release 2022.5.1
whorka 09318d1
fix(dashboard): make verify_ssl=true by default for RT client, and re…
whorka 742eea2
feat(dashboard): gh #731 support specifying more than one queue in RT…
whorka a0655cb
feat(dashboard): gh #731 allow selecting between multiple support tic…
whorka 15b63b1
feat(testing): gh #731 direct automated testing tickets to the Intern…
whorka f02fbd8
fix(testing): gh #731 skip the entirety of the support ticket test if…
whorka 5518434
fix(dashboard): gh #731 add more logging and validation of queue sele…
whorka 1653517
fix(dashboard): gh #731 move queue param from RequestTrackerService t…
whorka fc2982f
fix(dashboard): gh #731 removed alternative queue from local rt_confi…
abujeda 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 |
---|---|---|
@@ -1 +1 @@ | ||
2022.4.10 | ||
2022.5.1 |
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 |
---|---|---|
|
@@ -15,5 +15,5 @@ | |
{"token": "SAS", "name": "SAS"}, | ||
{"token": "Matlab", "name": "Matlab"} | ||
], | ||
"support_ticket": {"creationEnabled": false} | ||
"support_ticket": {"creationEnabled": true, "queue": "Internal:Logging"} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. creation enabled in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} |
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 |
---|---|---|
|
@@ -63,14 +63,32 @@ describe('Sid Dashboard - Support Ticket', () => { | |
cy.get('div#cc_error').invoke('text').should('match', /the cc format is invalid. expected a valid email/i) | ||
}) | ||
|
||
it('Should create support ticket', () => { | ||
it('Should show queue field validation errors', () => { | ||
cy.visit(`${rootPath}/support`, { auth }) | ||
// Submit an otherwise-valid form | ||
cy.get('form#new_support_ticket input#email').type('[email protected]') | ||
cy.get('form#new_support_ticket input#subject').type('TEST: Sid automated test') | ||
cy.get('form#new_support_ticket input#queue').then(elem => { | ||
elem.val('Not_A_Queue') | ||
}) | ||
cy.get('form#new_support_ticket input[type="submit"]').click() | ||
cy.task('log', `Support Ticket creationEnabled=${supportTicket.creationEnabled}`) | ||
|
||
cy.get('div.alert-danger').contains(/invalid queue selection/i).should($messageElement => { | ||
expect($messageElement.text()).to.match(/invalid queue selection/i) | ||
}) | ||
}) | ||
|
||
it('Should create support ticket', () => { | ||
cy.task('log', `Support Ticket creationEnabled=${supportTicket.creationEnabled} queue=${supportTicket.queue}`) | ||
|
||
if (supportTicket.creationEnabled) { | ||
cy.visit(`${rootPath}/support`, { auth }) | ||
cy.get('form#new_support_ticket input#email').type('[email protected]') | ||
cy.get('form#new_support_ticket input#subject').type('TEST: Sid automated test') | ||
cy.get('form#new_support_ticket input#queue').then(elem => { | ||
elem.val(supportTicket.queue) | ||
}) | ||
cy.get('form#new_support_ticket input[type="submit"]').click() | ||
cy.get('div.alert-success').should($messageElement => { | ||
//GENERIC MESSAGE IS DISPLAYED | ||
expect($messageElement.text()).to.match(/support ticket created/i) | ||
|
@@ -81,4 +99,4 @@ describe('Sid Dashboard - Support Ticket', () => { | |
|
||
}) | ||
|
||
}) | ||
}) |
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 |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
/application/public/assets | ||
|
||
/deployment/sid_passenger/files/application | ||
/application/config/rt_config.yml | ||
VERSION |
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
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.
support_ticket
default values can be set into https://github.com/hmdc/sid2/blob/canary/automated-testing/cypress/support/base.js#L33 for simplicityThere 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.
Yes, but since these are site-specific values, I prefer that they go in configuration files.