Commit 453a0d7b authored by zarina's avatar zarina 🌊

ACP-26 написала тесты на изменение курса

parent 9eedc316
......@@ -15,7 +15,19 @@ Scenario('Создание курса', async ({I}) => {
I.fillField({id: 'title'}, someTitle)
I.fillField({id: 'duration'}, '15')
I.click({id: 'submit_course_btn'})
I.waitForText('Курс успешно создан!')
I.waitForText(`Курс ${someTitle} успешно создан!`)
I.dontSee('Создание курса')
I.see(someTitle)
});
Scenario('Редактирование курса', async ({I}) => {
let someTitle = 'course-' + Math.random().toString().substring(10)
baseLogin(I)
I.amOnPage('/courses-and-groups/courses/1/edit')
I.fillField({id: 'title'}, someTitle)
I.fillField({id: 'duration'}, '15')
I.click({id: 'submit_course_btn'})
I.waitForText(`Курс ${someTitle} успешно изменен!`)
I.dontSee('Редактирование курса')
I.see(someTitle)
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment