Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
tests
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zarina
tests
Commits
9eedc316
Commit
9eedc316
authored
Jul 19, 2021
by
zarina
🌊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACP-45 написала тесты на добавление курса
parent
2b4b2a07
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
176 additions
and
152 deletions
+176
-152
courses_test.js
tests/courses_test.js
+21
-0
profile_test.js
tests/profile_test.js
+155
-152
No files found.
tests/courses_test.js
0 → 100644
View file @
9eedc316
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
tests/profile_test.js
View file @
9eedc316
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment