Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
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
Евгений Положенцев
planner-team-one
Commits
ae140696
Commit
ae140696
authored
Dec 09, 2022
by
Ermolaev Timur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#86
Оставил только создание задачи
parent
72e3d549
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
codecept.conf.js
planner-tests/codecept.conf.js
+3
-1
create_task.feature
planner-tests/features/create_task.feature
+2
-5
create_task_steps.js
planner-tests/step_definitions/create_task_steps.js
+3
-1
No files found.
planner-tests/codecept.conf.js
View file @
ae140696
...
@@ -17,7 +17,9 @@ exports.config = {
...
@@ -17,7 +17,9 @@ exports.config = {
hooks
:
[],
hooks
:
[],
gherkin
:
{
gherkin
:
{
features
:
'./features/*.feature'
,
features
:
'./features/*.feature'
,
steps
:
[
'./step_definitions/steps.js'
,
'./step_definitions/create_edit_delete_task_steps.js'
]
steps
:
[
'./step_definitions/steps.js'
,
'./step_definitions/create_task_steps.js'
]
},
},
plugins
:
{
plugins
:
{
screenshotOnFail
:
{
screenshotOnFail
:
{
...
...
planner-tests/features/create_
edit_delete_
task.feature
→
planner-tests/features/create_task.feature
View file @
ae140696
#language: ru
#language: ru
Функция
:
Создание
, редактирование, удаление
задачи
Функция
:
Создание задачи
Сценарий
:
Успешное создание задачи
Сценарий
:
Успешное создание задачи
Допустим
я нахожусь на странице
"/"
Допустим
я нахожусь на странице
"/"
То
я нажимаю на кнопку '#test_month_header'
То
я нажимаю на кнопку '#test_month_header'
...
@@ -10,6 +10,3 @@
...
@@ -10,6 +10,3 @@
Если
я ввожу в поле
"title"
текст
"test tasklasdlasdl"
Если
я ввожу в поле
"title"
текст
"test tasklasdlasdl"
И
я нажимаю на кнопку '#test_button_save_task'
И
я нажимаю на кнопку '#test_button_save_task'
Тогда
я вижу элемент с текстом
"Задачаtest tasklasdlasdl"
Тогда
я вижу элемент с текстом
"Задачаtest tasklasdlasdl"
\ No newline at end of file
# И я ввожу в поле "password" текст "123"
# И я нажимаю на кнопку "#test_login"
# То я вижу элемент "#test_greetings"
\ No newline at end of file
planner-tests/step_definitions/create_
edit_delete_
task_steps.js
→
planner-tests/step_definitions/create_task_steps.js
View file @
ae140696
...
@@ -23,8 +23,10 @@ When('я ввожу в поле {string} текст {string}', (field, title) =>
...
@@ -23,8 +23,10 @@ When('я ввожу в поле {string} текст {string}', (field, title) =>
When
(
'я нажимаю на кнопку {string}'
,
(
buttonId
)
=>
{
When
(
'я нажимаю на кнопку {string}'
,
(
buttonId
)
=>
{
I
.
click
(
buttonId
)
I
.
click
(
buttonId
)
I
.
wait
(
2
)
});
});
Then
(
'я вижу элемент с текстом {string}'
,
(
text
)
=>
{
Then
(
'я вижу элемент с текстом {string}'
,
(
text
)
=>
{
I
.
see
(
text
)
I
.
see
(
text
)
I
.
wait
(
2
)
});
});
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