From 321865f9167776058dccf3283a28807a50f71079 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Tue, 21 Jan 2025 11:25:29 -0500 Subject: [PATCH] test: update cypress login command --- cypress/support/commands.ts | 1 - src/components/Login/PlexLoginButton.tsx | 1 + src/components/Login/index.tsx | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 0eb9c869a..a23cb5e68 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -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); diff --git a/src/components/Login/PlexLoginButton.tsx b/src/components/Login/PlexLoginButton.tsx index e6c5d97fa..111b95d32 100644 --- a/src/components/Login/PlexLoginButton.tsx +++ b/src/components/Login/PlexLoginButton.tsx @@ -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 && (
diff --git a/src/components/Login/index.tsx b/src/components/Login/index.tsx index 7758969d2..0b51e86f1 100644 --- a/src/components/Login/index.tsx +++ b/src/components/Login/index.tsx @@ -137,6 +137,7 @@ const Login = () => { (mediaServerLogin ? (