1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-10-12 12:04:24 +02:00

Merge pull request #515 from chinchang/cypress-int

Adding Cypress framework
This commit is contained in:
Kushagra Gour
2022-11-30 09:50:21 +05:30
committed by GitHub
18 changed files with 485 additions and 1 deletions

View File

@@ -119,6 +119,7 @@ export class Console extends PureComponent {
class="code-wrap__header-btn code-wrap__collapse-btn"
title={i18n._(t`Toggle console`)}
onClick={toggleConsole}
data-testid="toggleConsole"
/>
</div>
</div>
@@ -127,6 +128,7 @@ export class Console extends PureComponent {
ref={el => {
this.logContainerEl = el;
}}
data-testid="consoleItems"
>
{logs.map(log => (
<LogRow data={log} />

View File

@@ -159,6 +159,7 @@ export class CreateNewModal extends Component {
trackEvent('ui', 'startBlankBtnClick');
onBlankTemplateSelect();
}}
data-testid="startBlankButton"
>
Start Blank
</button>

View File

@@ -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>

View File

@@ -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"
>