|
|
@@ -148,6 +148,7 @@ const PageCreateModal = (props) => {
|
|
|
className="page-today-input1 form-control text-center mx-2"
|
|
|
value={todayInput1}
|
|
|
onChange={e => onChangeTodayInput1Handler(e.target.value)}
|
|
|
+ data-testid="createTodaysPageInput"
|
|
|
/>
|
|
|
</form>
|
|
|
<span className="page-today-suffix">/{now}/</span>
|
|
|
@@ -165,7 +166,12 @@ const PageCreateModal = (props) => {
|
|
|
</div>
|
|
|
|
|
|
<div className="d-flex justify-content-end mt-1 mt-sm-0">
|
|
|
- <button type="button" className="grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3" onClick={createTodayPage}>
|
|
|
+ <button
|
|
|
+ data-testid="createTodaysPageBtn"
|
|
|
+ type="button"
|
|
|
+ className="grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3"
|
|
|
+ onClick={createTodayPage}
|
|
|
+ >
|
|
|
<i className="icon-fw icon-doc"></i>{t('Create')}
|
|
|
</button>
|
|
|
</div>
|
|
|
@@ -205,13 +211,19 @@ const PageCreateModal = (props) => {
|
|
|
placeholder={t('Input page name')}
|
|
|
onChange={e => onChangePageNameInputHandler(e.target.value)}
|
|
|
required
|
|
|
+ data-testid="createPageInput"
|
|
|
/>
|
|
|
</form>
|
|
|
)}
|
|
|
</div>
|
|
|
|
|
|
<div className="d-flex justify-content-end mt-1 mt-sm-0">
|
|
|
- <button type="button" className="grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3" onClick={createInputPage}>
|
|
|
+ <button
|
|
|
+ data-testid="createPageBtn"
|
|
|
+ type="button"
|
|
|
+ className="grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3"
|
|
|
+ onClick={createInputPage}
|
|
|
+ >
|
|
|
<i className="icon-fw icon-doc"></i>{t('Create')}
|
|
|
</button>
|
|
|
</div>
|