Commit 9eedc316 authored by zarina's avatar zarina 🌊

ACP-45 написала тесты на добавление курса

parent 2b4b2a07
const baseLogin = (I) => {
I.amOnPage('/login')
I.fillField({id: 'email'}, 'rina.saif221@gmail.com')
I.fillField({id: 'password'}, '123456ttt')
I.click({name:'login_btn'})
I.wait(3)
}
Feature('Курсы')
Scenario('Создание курса', async ({I}) => {
let someTitle = 'course-' + Math.random().toString().substring(10)
baseLogin(I)
I.amOnPage('/courses-and-groups')
I.click({id: 'create_course_btn'})
I.waitForText('Создание курса')
I.fillField({id: 'title'}, someTitle)
I.fillField({id: 'duration'}, '15')
I.click({id: 'submit_course_btn'})
I.waitForText('Курс успешно создан!')
I.dontSee('Создание курса')
I.see(someTitle)
});
\ No newline at end of file
This diff is collapsed.
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