manager icon indicating copy to clipboard operation
manager copied to clipboard

test: [M3-8146] - Cypress tests for refactored Linode Create via CLI flow

Open cliu-akamai opened this issue 1 year ago โ€ข 3 comments

Description ๐Ÿ“

Refactor Cypress test to the flow of creating Linode through CLI.

Major Changes ๐Ÿ”„

  • Refactor Cypress test that creates Linode through CLI.

How to test ๐Ÿงช

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

cliu-akamai avatar Aug 08 '24 21:08 cliu-akamai

Coverage Report: โœ…
Base Coverage: 82.41%
Current Coverage: 82.41%

github-actions[bot] avatar Aug 08 '24 21:08 github-actions[bot]

This PR is stale because it has been open 15 days with no activity. Please attend to this PR or it will be closed in 5 days

github-actions[bot] avatar Aug 28 '24 00:08 github-actions[bot]

Here's the code that detects the event and triggers the redirect:

https://github.com/linode/manager/blob/14b02430623d770ddb6c60ac91957aec4863ed88/packages/manager/src/features/Linodes/LinodesCreate/ApiAwarenessModal/ApiAwarenessModal.tsx#L64-L69

We can try mocking this instead of manually executing the curl command.

@cliu-akamai

hkhalil-akamai avatar Aug 28 '24 18:08 hkhalil-akamai

This PR is stale because it has been open 15 days with no activity. Please attend to this PR or it will be closed in 5 days

github-actions[bot] avatar Sep 14 '24 00:09 github-actions[bot]