Skip to content

test: [M3-8133] - Add Cypress test for Login History page - #10575

Merged
cliu-akamai merged 4 commits into
linode:developfrom
cliu-akamai:feature/M3-8133
Jul 8, 2024
Merged

cliu-akamai merged 4 commits into
linode:developfrom
cliu-akamai:feature/M3-8133

Conversation

@cliu-akamai

Copy link
Copy Markdown
Contributor

Description 📝

Add integration test for Login History page.

Major Changes 🔄

  • Check account logins are shown in the table.
  • Check "No account logins" message shows up when there is no item in the table.

How to test 🧪

yarn cy:run -s "cypress/e2e/core/account/account-login-history.spec.ts"

@cliu-akamai
cliu-akamai requested a review from a team as a code owner June 12, 2024 20:49
@cliu-akamai
cliu-akamai requested review from jdamore-linode and removed request for a team June 12, 2024 20:49
@github-actions

github-actions Bot commented Jun 12, 2024

Copy link
Copy Markdown

Coverage Report:
Base Coverage: 82.23%
Current Coverage: 82.23%

@mjac0bs mjac0bs changed the title M3-8133 Add Cypress test for Login History page test: [M3-8133] - Add Cypress test for Login History page Jun 13, 2024
@dwiley-akamai
dwiley-akamai self-requested a review June 25, 2024 17:58

@dwiley-akamai dwiley-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.

Test passed locally & remotely ✅

Can we add a changeset under the Tests category?

Comment on lines +209 to +211
// cy.findByText(mockSuccessfulLogin.status, { exact: false }).should(
// 'be.visible'
// );

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.

Is this (and L196-198) commented out pending something that's forthcoming or can it be removed now?

@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.

Nice work @cliu-akamai! Approved pending both the points Dajahi mentioned:

  • Changeset addition
  • Stray comments that could possibly be cleaned up

Comment on lines +21 to +31

/**
* Helper text that appears above the login history table.
*/
export const loginHelperText =
'Logins across all users on your account over the last 90 days.';

/**
* Empty state message that appears when there is no item in the login history table.
*/
export const loginEmptyStateMessageText = 'No account logins';

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.

Thanks for these!

@cliu-akamai
cliu-akamai requested a review from a team as a code owner July 8, 2024 18:55
@cliu-akamai
cliu-akamai requested review from AzureLatte and carrillo-erik and removed request for a team July 8, 2024 18:55
@jdamore-linode

Copy link
Copy Markdown
Contributor

@cliu-akamai You'll probably have to pull in the latest changes from develop to fix those OBJ failures!

@cliu-akamai
cliu-akamai merged commit 0f2e15c into linode:develop Jul 8, 2024
@cliu-akamai
cliu-akamai deleted the feature/M3-8133 branch July 8, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants