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

Update: Removed unused buttons. Log out function fails upon button click #198

Conversation

ErinClaudio
Copy link
Collaborator

@ErinClaudio ErinClaudio commented Sep 26, 2023

Describe your change in plain English.

  • Removed extraneous dropdown options, retaining only the "Log Out" button.
  • Updated the "Log Out" button to successfully log out the user.
  • Adjusted system tests to account for dynamic organization slugs and improved test reliability.

Link to the issue

#195

Concerns

I have reservations about the sad path test for the "non-authenticated user attempts to log out" scenario. While the test passes, I believe it can be enhanced. Would appreciate guidance or a review on this particular test.

@kasugaijin
Copy link
Collaborator

Could you check to see if your change is causing the one test in the pipeline to fail?
Thanks!

@edwinthinks
Copy link
Collaborator

Looks like the failed test has nothing to do with the changes.

LoginTest#test_: when logging in as a staff member should direct to the organization's adoptable pets page. :
  Ferrum::ProcessTimeoutError: Browser did not produce websocket url within 5 seconds, try to increase `:process_timeout`. See https://github.com/rubycdp/ferrum#customization

This is usually caused because the CI machine is too slow. We can fix this by making a tweak in our settings. @ErinClaudio @kasugaijin we can safetly just ignore that. I'll open a issue to resolve it.

@kasugaijin
Copy link
Collaborator

Looks like the failed test has nothing to do with the changes.

LoginTest#test_: when logging in as a staff member should direct to the organization's adoptable pets page. :
  Ferrum::ProcessTimeoutError: Browser did not produce websocket url within 5 seconds, try to increase `:process_timeout`. See https://github.com/rubycdp/ferrum#customization

This is usually caused because the CI machine is too slow. We can fix this by making a tweak in our settings. @ErinClaudio @kasugaijin we can safetly just ignore that. I'll open a issue to resolve it.

Ah yes. This is out flaky test. It failed a couple times ealier this evening too.

@ErinClaudio ErinClaudio force-pushed the Update-options-in-the-avatar-dropdown-menu-to-be-only-Sign-Out branch from 557ca60 to a4ed92d Compare September 29, 2023 15:59
@ErinClaudio
Copy link
Collaborator Author

ErinClaudio commented Sep 29, 2023

@kasugaijin @edwinthinks Thank you for the update!

ErinClaudio and others added 12 commits September 29, 2023 13:14
* added layout import to pets dashboard, removed javascript from head partial

* utilize geeks ui styling and move components

* Implement requested changes

* Change header variable to match others

* remove previous change that was causing funky formatting
… locations table (#230)

* Remove location fields to Organization

* Add zipcode field to locations

* Fix seeds

* Add zipcode to location factory

* WIP: Remove organization.city usage from views/organizations/home/index.html.erb

* Run automatic fixer

* Remove unecessary comment
@ErinClaudio ErinClaudio marked this pull request as ready for review October 3, 2023 22:30
Copy link
Collaborator

@edwinthinks edwinthinks left a comment

Choose a reason for hiding this comment

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

Thanks @ErinClaudio for your PR. I left you a comment let me know if you have any Qs

app/views/layouts/dashboard.html.erb Outdated Show resolved Hide resolved
Copy link
Collaborator

@edwinthinks edwinthinks left a comment

Choose a reason for hiding this comment

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

Thanks @ErinClaudio ! LGTM!

@edwinthinks edwinthinks merged commit 8f0d89b into main Oct 6, 2023
@edwinthinks edwinthinks deleted the Update-options-in-the-avatar-dropdown-menu-to-be-only-Sign-Out branch October 6, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants