__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@block @block_myprofile
Feature: The logged in user block allows users to view their profile information
In order to enable the logged in user block
As a user
I can add the logged in user block and configure it to show my information
Scenario: Configure the logged in user block to show / hide the users country
Given the following "users" exist:
| username | firstname | lastname | email | country |
| teacher1 | Teacher | One | teacher1@example.com | AU |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display country | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "Australia" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display country | Yes |
And I press "Save changes"
And I should see "Australia" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users city
Given the following "users" exist:
| username | firstname | lastname | email | city |
| teacher1 | Teacher | One | teacher1@example.com | Perth |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display city | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "Perth" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display city | Yes |
And I press "Save changes"
And I should see "Perth" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users email
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | One | teacher1@example.com |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display email | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "teacher1@example.com" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display email | Yes |
And I press "Save changes"
And I should see "teacher1@example.com" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users phone
Given the following "users" exist:
| username | firstname | lastname | email | phone1 |
| teacher1 | Teacher | One | teacher1@example.com | 555-5555 |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display phone | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "555-5555" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display phone | Yes |
And I press "Save changes"
And I should see "555-5555" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users mobile phone
Given the following "users" exist:
| username | firstname | lastname | email | phone2 |
| teacher1 | Teacher | One | teacher1@example.com | 555-5555 |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display mobile phone | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "555-5555" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display mobile phone | Yes |
And I press "Save changes"
And I should see "555-5555" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users Institution
Given the following "users" exist:
| username | firstname | lastname | email | institution |
| teacher1 | Teacher | One | teacher1@example.com | myinstitution |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display institution | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "myinstitution" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display institution | Yes |
And I press "Save changes"
And I should see "myinstitution" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users address
Given the following "users" exist:
| username | firstname | lastname | email | address |
| teacher1 | Teacher | One | teacher1@example.com | myaddress |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display address | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "myaddress" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display address | Yes |
And I press "Save changes"
And I should see "myaddress" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users first access
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | One | teacher1@example.com |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display first access | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "First access:" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display first access | Yes |
And I press "Save changes"
And I should see "First access:" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users last access
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | One | teacher1@example.com |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display last access | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "Last access:" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display last access | Yes |
And I press "Save changes"
And I should see "Last access:" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users current login
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | One | teacher1@example.com |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display current login | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "Log in:" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display current login | Yes |
And I press "Save changes"
And I should see "Log in:" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users last ip
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | One | teacher1@example.com |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display last IP | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "IP:" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display last IP | Yes |
And I press "Save changes"
And I should see "IP:" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users idnumber
Given the following "users" exist:
| username | firstname | lastname | email | idnumber |
| teacher1 | Teacher | One | teacher1@example.com | ID12345 |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display ID number | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "ID number:" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display ID number | Yes |
And I press "Save changes"
And I should see "ID number:" in the "Logged in user" "block"
Scenario: Configure the logged in user block to show / hide the users last login
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | One | teacher1@example.com |
And I log in as "teacher1"
And I turn editing mode on
When I add the "Logged in user" block
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display last login | No |
And I press "Save changes"
Then I should see "Teacher One" in the "Logged in user" "block"
And I should not see "Last login:" in the "Logged in user" "block"
And I configure the "Logged in user" block
And I set the following fields to these values:
| Display last login | Yes |
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I should see "Last login:" in the "Logged in user" "block"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| block_myprofile.feature | File | 11.71 KB | 0777 |
|
| block_myprofile_activity.feature | File | 1.26 KB | 0777 |
|
| block_myprofile_course.feature | File | 954 B | 0777 |
|
| block_myprofile_dashboard.feature | File | 691 B | 0777 |
|
| block_myprofile_frontpage.feature | File | 1.02 KB | 0777 |
|