mirror of
https://github.com/chinchang/web-maker.git
synced 2025-10-12 12:04:24 +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>
|
||||
|
@@ -92,6 +92,7 @@ const Modal = ({
|
||||
type="button"
|
||||
onClick={closeHandler}
|
||||
aria-label="Close modal"
|
||||
data-testid="closeModalButton"
|
||||
title="Close"
|
||||
class="js-modal__close-btn modal__close-btn"
|
||||
>
|
||||
|
Reference in New Issue
Block a user