Add a correct case for words in sentence (#19485)
* Add a correct case for words in sentence * Change line 23pull/30335/head
parent
202e90f5db
commit
48539366ca
|
@ -8,7 +8,7 @@ localeTitle: Добавить кнопку отправки в форму
|
|||
---
|
||||
|
||||
## Description
|
||||
<section id="description"> Давайте добавим кнопку <code>submit</code> в вашу форму. Нажатие этой кнопки отправит данные из вашей формы в URL-адрес, указанный вами с помощью атрибута <code>action</code> формы. Вот пример кнопки отправки: <code><button type="submit">this button submits the form</button></code> </section>
|
||||
<section id="description"> Давайте добавим кнопку <code>submit</code> в вашу форму. Нажатие этой кнопки отправит данные из вашей формы по URL-адресу, указанному вами с помощью атрибута формы <code>action</code> . Вот пример кнопки отправки: <code><button type="submit">this button submits the form</button></code> </section>
|
||||
|
||||
## Instructions
|
||||
<section id="instructions"> Добавьте кнопку в качестве последнего элемента вашего элемента <code>form</code> с типом <code>submit</code> и «Отправить» в качестве текста. </section>
|
||||
|
@ -20,7 +20,7 @@ localeTitle: Добавить кнопку отправки в форму
|
|||
tests:
|
||||
- text: У вашей формы должна быть кнопка внутри.
|
||||
testString: 'assert($("form").children("button").length > 0, "Your form should have a button inside it.");'
|
||||
- text: 'Кнопка отправки должна иметь <code>type</code> атрибута, установленный для <code>submit</code> .'
|
||||
- text: 'Кнопка отправки должна иметь <code>type</code> атрибута, установленный на <code>submit</code> .'
|
||||
testString: 'assert($("button").attr("type") === "submit", "Your submit button should have the attribute <code>type</code> set to <code>submit</code>.");'
|
||||
- text: Кнопка отправки должна содержать только текст «Отправить».
|
||||
testString: 'assert($("button").text().match(/^\s*submit\s*$/gi), "Your submit button should only have the text "Submit".");'
|
||||
|
|
Loading…
Reference in New Issue