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
038e6a03
Commit
038e6a03
authored
Jan 30, 2023
by
Ermolaev Timur
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'task-164-fix/fix_tests' into 'development'
#164
исправил тесты See merge request
!133
parents
9de7da77
eca46494
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
49 deletions
+16
-49
package.json
planner-front/package.json
+1
-1
WeekCalendar.test.js
planner-front/src/tests/WeekCalendar.test.js
+1
-1
codecept.conf.js
planner-tests/codecept.conf.js
+3
-3
create_task.feature
planner-tests/features/create_task.feature
+0
-12
login.feature
planner-tests/features/login.feature
+5
-0
create_task_steps.js
planner-tests/step_definitions/create_task_steps.js
+0
-32
login_steps.js
planner-tests/step_definitions/login_steps.js
+6
-0
No files found.
planner-front/package.json
View file @
038e6a03
...
...
@@ -30,7 +30,7 @@
"scripts"
:
{
"start"
:
"react-scripts start"
,
"build"
:
"react-scripts build"
,
"test"
:
"react-scripts test"
,
"test"
:
"react-scripts test
--watchAll=false
"
,
"eject"
:
"react-scripts eject"
},
"eslintConfig"
:
{
...
...
planner-front/src/tests/WeekCalendar.test.js
View file @
038e6a03
import
{
getCurrentWeekDayString
}
from
'../components/WeekCalendar/WeekCalendarBody/Helpers'
;
import
{
getCurrentWeekDayString
}
from
'../components/
Calendars/
WeekCalendar/WeekCalendarBody/Helpers'
;
import
{
getWeekFromCurrentDate
,
getWeekInfoString
}
from
'../helpers/CalendarHelpers'
;
describe
(
'Получение недели в 7дневном формате'
,
()
=>
{
...
...
planner-tests/codecept.conf.js
View file @
038e6a03
...
...
@@ -3,7 +3,7 @@ exports.config = {
helpers
:
{
Puppeteer
:
{
url
:
'http://localhost:3000'
,
show
:
tru
e
,
show
:
fals
e
,
windowSize
:
'1200x900'
}
},
...
...
@@ -19,7 +19,7 @@ exports.config = {
features
:
'./features/*.feature'
,
steps
:
[
'./step_definitions/steps.js'
,
'./step_definitions/
create_task
_steps.js'
]
'./step_definitions/
login
_steps.js'
]
},
plugins
:
{
screenshotOnFail
:
{
...
...
planner-tests/features/create_task.feature
deleted
100644 → 0
View file @
9de7da77
#language: ru
Функция
:
Создание задачи
Сценарий
:
Успешное создание задачи
Допустим
я нахожусь на странице
"/"
То
я нажимаю на кнопку '#test_month_header'
И
я вижу элемент
"#test_month_info"
Если
я нажимаю на элемент
".test_empty_box"
И
я вижу элемент
"#test_modal_task"
Если
я ввожу в поле
"title"
текст
"test tasklasdlasdl"
И
я нажимаю на кнопку '#test_button_save_task'
Тогда
я вижу элемент с текстом
"Задачаtest tasklasdlasdl"
\ No newline at end of file
planner-tests/features/login.feature
0 → 100644
View file @
038e6a03
#language: ru
Функция
:
Вход пользователя
Сценарий
:
Успешный вход пользователя
Допустим
я нахожусь на странице
"/"
\ No newline at end of file
planner-tests/step_definitions/create_task_steps.js
deleted
100644 → 0
View file @
9de7da77
const
{
I
}
=
inject
();
Given
(
"я нахожусь на странице {string}"
,
(
page
)
=>
{
I
.
login
(
'a@a.a0'
,
'123'
)
I
.
amOnPage
(
page
)
});
Then
(
'я нажимаю на кнопку {string}'
,
(
buttonId
)
=>
{
I
.
click
(
buttonId
)
});
When
(
'я вижу элемент {string}'
,
(
infoString
)
=>
{
I
.
waitForElement
(
infoString
,
5
)
});
When
(
'я нажимаю на элемент {string}'
,
(
className
)
=>
{
I
.
click
(
className
)
});
When
(
'я ввожу в поле {string} текст {string}'
,
(
field
,
title
)
=>
{
I
.
fillField
(
field
,
title
)
});
When
(
'я нажимаю на кнопку {string}'
,
(
buttonId
)
=>
{
I
.
click
(
buttonId
)
I
.
wait
(
2
)
});
Then
(
'я вижу элемент с текстом {string}'
,
(
text
)
=>
{
I
.
see
(
text
)
I
.
wait
(
2
)
});
planner-tests/step_definitions/login_steps.js
0 → 100644
View file @
038e6a03
const
{
I
}
=
inject
();
Given
(
"я нахожусь на странице {string}"
,
(
page
)
=>
{
I
.
login
(
'a@a.a0'
,
'123'
)
I
.
amOnPage
(
page
)
});
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