Skip to content

Commit

Permalink
test: update cypress login command
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhthomas committed Jan 22, 2025
1 parent bdcd061 commit eb2bd16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Cypress.Commands.add('login', (email, password) => {
[email, password],
() => {
cy.visit('/login');
cy.contains('Use your Overseerr account').click();

cy.get('[data-testid=email]').type(email);
cy.get('[data-testid=password]').type(password);
Expand Down
1 change: 1 addition & 0 deletions src/components/Login/PlexLoginButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const PlexLoginButton = ({
className="relative flex-1 border-[#cc7b19] bg-[rgba(204,123,25,0.3)] hover:border-[#cc7b19] hover:bg-[rgba(204,123,25,0.7)] disabled:opacity-50"
onClick={login}
disabled={loading || isProcessing}
data-testid="plex-login-button"
>
{loading && (
<div className="absolute right-0 mr-4 h-4 w-4">
Expand Down
2 changes: 2 additions & 0 deletions src/components/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const Login = () => {
(mediaServerLogin ? (
<Button
key="jellyseerr"
data-testid="jellyseerr-login-button"
className="flex-1 bg-transparent"
onClick={() => setMediaServerLogin(false)}
>
Expand All @@ -151,6 +152,7 @@ const Login = () => {
) : (
<Button
key="mediaserver"
data-testid="mediaserver-login-button"
className="flex-1 bg-transparent"
onClick={() => setMediaServerLogin(true)}
>
Expand Down

0 comments on commit eb2bd16

Please sign in to comment.