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
453a0d7b
Commit
453a0d7b
authored
Jul 19, 2021
by
zarina
🌊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACP-26 написала тесты на изменение курса
parent
9eedc316
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
courses_test.js
tests/courses_test.js
+13
-1
No files found.
tests/courses_test.js
View file @
453a0d7b
...
...
@@ -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
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