create e2e test for auth buttons (#1907)

This PR adds a few helpful additions regarding authentication.

Changes:
* e2e tests are now run on test_oauth via a passed config.yaml 
* node dev server correctly handles `/login` and `/logout` endpoints to make developing for auth easier
* Introduced auth e2e tests to check that buttons display and work
This commit is contained in:
Severiano Badajoz
2020-10-08 10:02:40 -07:00
committed by GitHub
parent b5ec43c4b1
commit c4c48b9a57
6 changed files with 94 additions and 16 deletions
+5 -1
View File
@@ -51,7 +51,11 @@ const Auth = React.memo((props) => {
return (
<Popover content={PopoverContent}>
<Button className={styles.menubarButton} style={{ padding: 0 }}>
<Button
data-testid="user-info"
className={styles.menubarButton}
style={{ padding: 0 }}
>
{userinfo?.picture ? (
<img alt="profile" src={userinfo?.picture} />
) : (