Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

cliu-akamai
Copy link
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
Copy link

github-actions bot commented Jun 12, 2024

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
Copy link
Contributor

@dwiley-akamai dwiley-akamai left a comment

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
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?

Copy link
Contributor

@jdamore-linode jdamore-linode left a comment

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
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 carrillo-erik and AzureLatte and removed request for a team July 8, 2024 18:55
@jdamore-linode
Copy link
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
18 of 19 checks passed
@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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants