mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-19 04:51:13 +02:00
tests for new button
This commit is contained in:
@@ -43,6 +43,7 @@ export function MainHeader(props) {
|
||||
onClick={props.addLibraryBtnHandler}
|
||||
data-event-category="ui"
|
||||
data-event-action="addLibraryButtonClick"
|
||||
data-testid="addLibraryButton"
|
||||
class="btn btn--dark hint--rounded hint--bottom-left"
|
||||
aria-label={i18n._(t`Add a JS/CSS library`)}
|
||||
>
|
||||
@@ -62,6 +63,7 @@ export function MainHeader(props) {
|
||||
<button
|
||||
class="btn btn--dark hint--rounded hint--bottom-left"
|
||||
aria-label={i18n._(t`Start a new creation`)}
|
||||
data-testid="newButton"
|
||||
onClick={props.newBtnHandler}
|
||||
>
|
||||
<svg viewBox="0 0 24 24">
|
||||
@@ -106,6 +108,7 @@ export function MainHeader(props) {
|
||||
onClick={props.loginBtnHandler}
|
||||
data-event-category="ui"
|
||||
data-event-action="loginButtonClick"
|
||||
data-testid="loginButton"
|
||||
class="btn btn--dark hint--rounded hint--bottom-left"
|
||||
>
|
||||
<Trans>Login/Signup</Trans>
|
||||
|
Reference in New Issue
Block a user