Skip to content

test: [M3-7954] - Cypress integration test to add SSH key via Profile page - #10477

Merged
cliu-akamai merged 3 commits into
linode:developfrom
cliu-akamai:feature/M3-7954
Jun 12, 2024
Merged

test: [M3-7954] - Cypress integration test to add SSH key via Profile page#10477
cliu-akamai merged 3 commits into
linode:developfrom
cliu-akamai:feature/M3-7954

Conversation

@cliu-akamai

Copy link
Copy Markdown
Contributor

Description 📝

Add integration test to add SSH key via Profile page.

Major Changes 🔄

  • Check users can add SSH key through Profile page

How to test 🧪

yarn cy:run -s "cypress/e2e/core/account/ssh-keys.spec.ts"

@cliu-akamai
cliu-akamai requested a review from a team as a code owner May 16, 2024 16:07
@cliu-akamai
cliu-akamai requested review from jdamore-linode and removed request for a team May 16, 2024 16:07
@github-actions

github-actions Bot commented May 16, 2024

Copy link
Copy Markdown

Coverage Report:
Base Coverage: 82.35%
Current Coverage: 82.35%

@mjac0bs
mjac0bs self-requested a review May 20, 2024 18:29

@mjac0bs mjac0bs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cliu-akamai Looks good overall with the spec passing and covering the expected happy path and the potential error flows.

I suggested a few minor changes. Please add a changeset too before I approve.

Screenshot 2024-05-21 at 8 18 18 AM

Comment thread packages/manager/cypress/e2e/core/account/ssh-keys.spec.ts Outdated
Comment thread packages/manager/cypress/e2e/core/account/ssh-keys.spec.ts Outdated
Comment thread packages/manager/cypress/e2e/core/account/ssh-keys.spec.ts Outdated
@cliu-akamai
cliu-akamai requested a review from a team as a code owner June 3, 2024 20:58
@cliu-akamai
cliu-akamai requested review from hkhalil-akamai and mjac0bs and removed request for a team June 3, 2024 20:58

@mjac0bs mjac0bs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@mjac0bs mjac0bs added Add'tl Approval Needed Waiting on another approval! and removed Missing Changeset labels Jun 3, 2024

@jdamore-linode jdamore-linode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @cliu-akamai, the tests look and run great!

Comment on lines +21 to +27
const randomKey = randomString(400, {
uppercase: true,
lowercase: true,
numbers: true,
spaces: false,
symbols: false,
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might suggest shortening this string to something like 100-200 characters since we're dealing with mock data anyway, only because it takes Cypress nearly 10 seconds to type it out each time 😅 (same suggestion for line 127)

@bnussman-akamai bnussman-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Jun 5, 2024

@hkhalil-akamai hkhalil-akamai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ SSH key integration tests passing

Great work!

@cliu-akamai
cliu-akamai merged commit c7bf93c into linode:develop Jun 12, 2024
@cliu-akamai
cliu-akamai deleted the feature/M3-7954 branch June 12, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Multiple approvals and ready to merge!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants