-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feat/branding UI tests #1773
base: main
Are you sure you want to change the base?
Feat/branding UI tests #1773
Conversation
…low to new feature
…out keeping track
…he GOC and pool pages
…r arbitrary branding
…email template preview
- Small refactor on file name - Added some more testids - Started some groundwork for expanding tests on the service settings page
|
||
import config from "../../../../config"; | ||
import ServiceSettingsPage from "../../../Notify/Admin/Pages/ServiceSettingsPage"; | ||
import { EditBranding, BrandingSettings } from "../../../Notify/Admin/Pages/AllPages"; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
- Only working locally at the moment. Need to add env variables for different environments
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.
A couple of changes needed for content/design changes that have occurred.
For the review pool tests, the Saves the selected custom logo
test is failing and I noticed that one of the components returns all the radio options as an array and then tries to click it, perhaps you meant to select just one?
AvailableLogoRadios: () => cy.get('input[id*="pool_branding-"]'),
Co-authored-by: Andrew <andrew.leith@cds-snc.ca>
- Added more data-testids - Make a couple tests less reliant on page content - Improve logging around Redis tasks
- added additional data-testid
- Add /branding page to the list of branding routes for a11y
- Since the github CI runner does not have direct access to redis, the previous method of connecting directly to redis to clear the cache is not viable. - Use admin user to navigate to the admin panel to clear the cache when we test the review pool page for empty and non-empty lists
🧪 Review environmenthttps://5y32oucomjgmyhcpj4wemory5e0ufqhr.lambda-url.ca-central-1.on.aws/ |
Summary | Résumé
This PR adds UI tests for the branding features
Test suites
Branding settings
Choose GOC brandings
Choose from pool
Preview Branding
Branding request tests