test: [M3-8454] - Cypress test for Secure VMs firewall generation#10802
test: [M3-8454] - Cypress test for Secure VMs firewall generation#10802hkhalil-akamai merged 5 commits intolinode:developfrom
Conversation
There was a problem hiding this comment.
This header is removed in a global interceptor, so we have to manually re-add it for this request.
There was a problem hiding this comment.
The value of watchFirewall becomes null after clearing (create v2).
There was a problem hiding this comment.
The value of firewallId becomes -1 after clearing (create v1).
e9ead05 to
567d736
Compare
|
Coverage Report: ✅ |
|
@cliu-akamai @harsh-akamai this PR is ready for review whenever you are able. Thanks! |
|
|
||
| linodeCreatePage.setLabel(mockLinode.label); | ||
| linodeCreatePage.selectImage('Debian 11'); | ||
| linodeCreatePage.selectRegionById(linodeRegion.id); |
There was a problem hiding this comment.
| linodeCreatePage.selectRegionById(linodeRegion.id); | |
| linodeCreatePage.selectRegionById(linodeRegion.label); |
Not sure if this is applicable only for me, but all the tests seem to fail when I use id instead of label
There was a problem hiding this comment.
I was encountering this issue too, but it only occurs when running tests locally with the Gecko v2 GA flag enabled.
manager/packages/manager/src/components/RegionSelect/RegionSelect.tsx
Lines 122 to 124 in 6c9ad93
There was a problem hiding this comment.
We may have to change all instances like this in the near future if GA becomes permanent and the flag is retired (cc @jdamore-linode)
There was a problem hiding this comment.
Hey @hkhalil-akamai, I can't run the tests locally right now because I'm running DC tests, but is this failing because Cypress is typing the region ID into a region select field and the desired region is not showing up? If so, I believe that's a Gecko bug (M3-8502) rather than an issue with the tests.
Description 📝
Add Cypress tests to verify the flow to generate compliant firewalls in the Linode Create form.
This flow can also be initiated from the banners in
FirewallLandingandFirewallDetailsbut since those are already covered by unit tests, and the component is shared, I decided to only write tests for generating firewalls through the Linode create flow.Target release date 🗓️
9/3
How to test 🧪
As an Author I have considered 🤔
Check all that apply