Browse Source

test(js): Use getByLabelText in loginForm test (#39806)

Evan Purkhiser 2 years ago
parent
commit
5405fc429d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      static/app/views/auth/loginForm.spec.jsx

+ 2 - 2
static/app/views/auth/loginForm.spec.jsx

@@ -6,8 +6,8 @@ import ConfigStore from 'sentry/stores/configStore';
 import LoginForm from 'sentry/views/auth/loginForm';
 
 function doLogin() {
-  userEvent.type(screen.getByPlaceholderText('username or email'), 'test@test.com');
-  userEvent.type(screen.getByPlaceholderText('password'), '12345pass');
+  userEvent.type(screen.getByLabelText('Account'), 'test@test.com');
+  userEvent.type(screen.getByLabelText('Password'), '12345pass');
   userEvent.click(screen.getByRole('button', {name: 'Continue'}));
 }