Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-theme_boost_campus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-theme_boost_campus
Commits
e0870dff
Commit
e0870dff
authored
4 years ago
by
Alexander Bias
Browse files
Options
Downloads
Patches
Plain Diff
Fix Behat test for unrestricted self enrolment hint
parent
47cca9dd
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES.md
+4
-0
4 additions, 0 deletions
CHANGES.md
tests/behat/theme_boost_campus_course_layout_settings.feature
+68
-24
68 additions, 24 deletions
...s/behat/theme_boost_campus_course_layout_settings.feature
with
72 additions
and
24 deletions
CHANGES.md
+
4
−
0
View file @
e0870dff
...
...
@@ -4,6 +4,10 @@ moodle-theme_boost_campus
Changes
-------
### Unreleased
*
2021-03-14 - Fix Behat test for unrestricted self enrolment hint
### v3.10-r4
*
2021-03-13 - Bugfix: Option to output the information banner without any particular Bootstrap color was broken on the login page.
...
...
This diff is collapsed.
Click to expand it.
tests/behat/theme_boost_campus_course_layout_settings.feature
+
68
−
24
View file @
e0870dff
...
...
@@ -197,76 +197,120 @@ Feature: Configuring the theme_boost_campus plugin for the "Course Layout settin
And I set the following fields to these values
:
|
id_enrolstartdate_enabled
|
0
|
|
id_enrolenddate_enabled
|
1
|
|
id_enrolenddate
|
##yesterday## |
# We can't use the ##yesterday## notation here.
|
id_enrolenddate_day
|
1
|
|
id_enrolenddate_month
|
January
|
|
id_enrolenddate_year
|
2019
|
|
id_enrolenddate_hour
|
00
|
|
id_enrolenddate_minute
|
00
|
And
I press
"Save changes"
And
I am on
"Course 1"
course homepage
Then I should not see "This course is currently visible and an unrestricted self enrolment is active
:
\"Self
enrolment
(Student)\""
And
".course-selfenrol-infobox"
"css_element"
should not exist
When
I navigate to
"Users > Enrolment methods"
in current page administration
And
I click on
"Edit"
"link"
in the
"Self enrolment (Student)"
"table_row"
And I set the following fields to these values
:
|
id_enrolstartdate_enabled
|
0
|
|
id_enrolenddate_enabled
|
1
|
|
id_enrolenddate
|
##tomorrow## |
# We can't use the ##tomorrow## notation here. This test will break in the year 2050.
|
id_enrolenddate_day
|
1
|
|
id_enrolenddate_month
|
January
|
|
id_enrolenddate_year
|
2050
|
|
id_enrolenddate_hour
|
00
|
|
id_enrolenddate_minute
|
00
|
And
I press
"Save changes"
And
I am on
"Course 1"
course homepage
Then I should see "This course is currently visible and an unrestricted self enrolment is active
:
\"Self
enrolment
(Student)\"."
And
".course-selfenrol-infobox"
"css_element"
should exist
When
I navigate to
"Users > Enrolment methods"
in current page administration
And
I click on
"Edit"
"link"
in the
"Self enrolment (Student)"
"table_row"
And I set the following fields to these values
:
|
id_enrolstartdate_enabled
|
1
|
|
id_enrolstartdate
|
##yesterday## |
# We can't use the ##yesterday## notation here.
|
id_enrolstartdate_day
|
1
|
|
id_enrolstartdate_month
|
January
|
|
id_enrolstartdate_year
|
2019
|
|
id_enrolstartdate_hour
|
00
|
|
id_enrolstartdate_minute
|
00
|
|
id_enrolenddate_enabled
|
0
|
And
I press
"Save changes"
And
I am on
"Course 1"
course homepage
Then I should see "This course is currently visible and an unrestricted self enrolment is active
:
\"Self
enrolment
(Student)\"."
And
".course-selfenrol-infobox"
"css_element"
should exist
When
I navigate to
"Users > Enrolment methods"
in current page administration
And
I click on
"Edit"
"link"
in the
"Self enrolment (Student)"
"table_row"
And I set the following fields to these values
:
|
id_enrolstartdate_enabled
|
1
|
|
id_enrolstartdate
|
##tomorrow## |
# We can't use the ##tomorrow## notation here. This test will break in the year 2050.
|
id_enrolstartdate_day
|
1
|
|
id_enrolstartdate_month
|
January
|
|
id_enrolstartdate_year
|
2050
|
|
id_enrolstartdate_hour
|
00
|
|
id_enrolstartdate_minute
|
00
|
|
id_enrolenddate_enabled
|
0
|
And
I press
"Save changes"
And
I am on
"Course 1"
course homepage
Then I should not see "This course is currently visible and an unrestricted self enrolment is active
:
\"Self
enrolment
(Student)\"."
And
".course-selfenrol-infobox"
"css_element"
should not exist
When
I navigate to
"Users > Enrolment methods"
in current page administration
And
I click on
"Edit"
"link"
in the
"Self enrolment (Student)"
"table_row"
And I set the following fields to these values
:
|
id_enrolstartdate_enabled
|
1
|
|
id_enrolstartdate
|
##Monday next week## |
# We can't use the ##Monday next week## notation here. This test will break in the year 2050.
|
id_enrolstartdate_day
|
1
|
|
id_enrolstartdate_month
|
January
|
|
id_enrolstartdate_year
|
2050
|
|
id_enrolstartdate_hour
|
00
|
|
id_enrolstartdate_minute
|
00
|
|
id_enrolenddate_enabled
|
1
|
|
id_enrolenddate
|
##Tuesday next week## |
# We can't use the ##Tuesday next week## notation here. This test will break in the year 2050.
|
id_enrolenddate_day
|
2
|
|
id_enrolenddate_month
|
January
|
|
id_enrolenddate_year
|
2050
|
|
id_enrolenddate_hour
|
00
|
|
id_enrolenddate_minute
|
00
|
And
I press
"Save changes"
And
I am on
"Course 1"
course homepage
Then I should not see "This course is currently visible and an unrestricted self enrolment is active
:
\"Self
enrolment
(Student)\"."
And
".course-selfenrol-infobox"
"css_element"
should not exist
When
I navigate to
"Users > Enrolment methods"
in current page administration
And
I click on
"Edit"
"link"
in the
"Self enrolment (Student)"
"table_row"
And I set the following fields to these values
:
|
id_enrolstartdate_enabled
|
1
|
|
id_enrolstartdate
|
##yesterday## |
# We can't use the ##yesterday## notation here.
|
id_enrolstartdate_day
|
1
|
|
id_enrolstartdate_month
|
January
|
|
id_enrolstartdate_year
|
2019
|
|
id_enrolstartdate_hour
|
00
|
|
id_enrolstartdate_minute
|
00
|
|
id_enrolenddate_enabled
|
1
|
|
id_enrolenddate
|
##tomorrow## |
# We can't use the ##tomorrow## notation here. This test will break in the year 2050.
|
id_enrolenddate_day
|
1
|
|
id_enrolenddate_month
|
January
|
|
id_enrolenddate_year
|
2050
|
|
id_enrolenddate_hour
|
00
|
|
id_enrolenddate_minute
|
00
|
And
I press
"Save changes"
And
I am on
"Course 1"
course homepage
Then I should see "This course is currently visible and an unrestricted self enrolment is active
:
\"Self
enrolment
(Student)\"."
And
".course-selfenrol-infobox"
"css_element"
should exist
When
I navigate to
"Users > Enrolment methods"
in current page administration
And
I click on
"Edit"
"link"
in the
"Self enrolment (Student)"
"table_row"
And I set the following fields to these values
:
|
id_enrolstartdate_enabled
|
1
|
|
id_enrolstartdate
|
##3 days ago## |
# We can't use the ##3 days ago## notation here.
|
id_enrolstartdate_day
|
1
|
|
id_enrolstartdate_month
|
January
|
|
id_enrolstartdate_year
|
2018
|
|
id_enrolstartdate_hour
|
00
|
|
id_enrolstartdate_minute
|
00
|
|
id_enrolenddate_enabled
|
1
|
|
id_enrolenddate
|
##2 days ago## |
# We can't use the ##2 days ago## notation here.
|
id_enrolenddate_day
|
1
|
|
id_enrolenddate_month
|
January
|
|
id_enrolenddate_year
|
2019
|
|
id_enrolenddate_hour
|
00
|
|
id_enrolenddate_minute
|
00
|
And
I press
"Save changes"
And
I am on
"Course 1"
course homepage
Then I should not see "This course is currently visible and an unrestricted self enrolment is active
:
\"Self
enrolment
(Student)\"."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment