linode / manager

Akamai's Cloud Manager is an open-source, single-page application designed as the primary frontend interface for interacting with the Linode API. It is entrusted by hundreds of thousands of customers with the management of their Linode services.
https://cloud.linode.com
Apache License 2.0
700 stars 363 forks source link

test: [M3-8608] - Cypress test for restricted user Image non-empty landing page #11335

Open hasyed-akamai opened 5 days ago

hasyed-akamai commented 5 days ago

Description ๐Ÿ“

Added cypress test for restricted user Image non-Empty landing page

Changes ๐Ÿ”„

Added below cypress tests under in spec file - cypress/e2e/core/images/images-non-empty-landing-page.spec.ts

TC_ID | TC_NAME | Steps | Expected Result -- | -- | -- | -- TC_1 | Verify restricted user access on image non-empty landing page | 1. Prerequites -ย  use mock to display Images.
2. Navigate to images page with restricted user - https://cloud.linode.com/images | 1. List image table is present.
2. Validate that "Create Image" button is disabled.
3. Validate the tooltip warning message "You don't have permissions to create Images. Please contact your account administrator to request the necessary permissions."
4. Validate the action menu items are disabled for restricted user except "Deploy to New Linode"

How to test ๐Ÿงช

yarn cy:run -s cypress/e2e/core/images/images-non-empty-landing-page.spec.ts

Verification steps

When test executed using this command yarn cy:run -s cypress/e2e/core/images/images-non-empty-landing-page.spec.ts all tests should pass successfully.

Tests

As an Author I have considered ๐Ÿค”

Check all that apply

linode-gh-bot commented 11 hours ago

Cloud Manager UI test results

:small_red_triangle: 2 failing tests on test run #5 โ†—๏ธŽ

:x: Failing:white_check_mark: Passing:arrow_right_hook: Skipped:clock1: Duration
2 Failing461 Passing2 Skipped116m 7s

Details

Failing Tests
SpecTest
:x:rebuild-linode.spec.tsrebuild linode ยป rebuilds a linode from Community StackScript
:x:rebuild-linode.spec.tsrebuild linode ยป rebuilds a linode from Account StackScript

Troubleshooting

Use this command to re-run the failing tests:

yarn cy:run -s "cypress/e2e/core/linodes/rebuild-linode.spec.ts,cypress/e2e/core/linodes/rebuild-linode.spec.ts"