-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOBILE-4631: Hide the login form in the app when is hidden in LMS
- Loading branch information
1 parent
a7536cc
commit 04728c7
Showing
14 changed files
with
137 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/core/features/login/components/login-methods/login-methods.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
src/core/features/login/tests/behat/showloginform_setting.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@core_login @app @javascript @lms_from4.5 | ||
Feature: Test showloginform setting in the app | ||
|
||
Background: | ||
Given the Moodle site is compatible with this feature | ||
And the following config values are set as admin: | ||
| showloginform | 0 | | ||
And the following "users" exist: | ||
| username | firstname | lastname | | ||
| student | david | student | | ||
|
||
Scenario: Login | ||
When I launch the app | ||
And I set the field "Your site" to "$WWWROOT" in the app | ||
And I press "Connect to your site" in the app | ||
Then the header should be "Log in" in the app | ||
And I should not find "Log in" "ion-button" in the app | ||
And I replace "/.*/" within ".core-siteurl" with "https://campus.example.edu" | ||
And the UI should match the snapshot | ||
|
||
Scenario: Reconnect | ||
When I entered the app as "student" | ||
And I log out in the app | ||
And I press "david student" in the app | ||
Then the header should be "Reconnect" in the app | ||
And I should not find "Log in" "ion-button" in the app | ||
And I replace "/.*/" within ".core-siteurl" with "https://campus.example.edu" | ||
And the UI should match the snapshot | ||
|
||
Scenario: Login with forced developer option | ||
When I launch the app | ||
And I set the field "Your site" to "$WWWROOT" in the app | ||
And I press "Connect to your site" in the app | ||
And I press "App settings" in the app | ||
And I press "About" in the app | ||
And I press "Moodle Mobile" in the app | ||
And I press "Developer options" in the app | ||
And I press "Always show login form" in the app | ||
And I press the back button in the app | ||
And I press the back button in the app | ||
And I press the back button in the app | ||
And I press the back button in the app | ||
Then the header should be "Log in" in the app | ||
And I should find "Log in" "ion-button" in the app | ||
|
||
Scenario: Reconnect with forced developer option | ||
When I entered the app as "student" | ||
And I log out in the app | ||
And I press "App settings" in the app | ||
And I press "About" in the app | ||
And I press "Moodle Mobile" in the app | ||
And I press "Developer options" in the app | ||
And I press "Always show login form" in the app | ||
And I press the back button in the app | ||
And I press the back button in the app | ||
And I press the back button in the app | ||
And I press the back button in the app | ||
And I press "david student" in the app | ||
Then the header should be "Reconnect" in the app | ||
And I should find "Log in" "ion-button" in the app |
Binary file added
BIN
+20.1 KB
.../login/tests/behat/snapshots/test-showloginform-setting-in-the-app-login_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.8 KB
...in/tests/behat/snapshots/test-showloginform-setting-in-the-app-reconnect_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters