MOBILE-3810 behat: Change accounts and main menu to user and more menu
parent
e1f89c9eab
commit
40252a6ed6
|
@ -33,7 +33,7 @@ Feature: Test basic usage of login in app
|
||||||
Scenario: Add a non existing account
|
Scenario: Add a non existing account
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press the accounts menu button in the app
|
And I press the user menu button in the app
|
||||||
And I press "Log out" in the app
|
And I press "Log out" in the app
|
||||||
And I wait the app to restart
|
And I wait the app to restart
|
||||||
And I press "Add a new account" in the app
|
And I press "Add a new account" in the app
|
||||||
|
@ -45,7 +45,7 @@ Feature: Test basic usage of login in app
|
||||||
Scenario: Add a non existing account from accounts switcher
|
Scenario: Add a non existing account from accounts switcher
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press the accounts menu button in the app
|
And I press the user menu button in the app
|
||||||
And I press "Switch account" in the app
|
And I press "Switch account" in the app
|
||||||
And I press "Add a new account" in the app
|
And I press "Add a new account" in the app
|
||||||
And I wait the app to restart
|
And I wait the app to restart
|
||||||
|
@ -57,7 +57,7 @@ Feature: Test basic usage of login in app
|
||||||
Scenario: Delete an account
|
Scenario: Delete an account
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press the accounts menu button in the app
|
And I press the user menu button in the app
|
||||||
And I press "Log out" in the app
|
And I press "Log out" in the app
|
||||||
And I wait the app to restart
|
And I wait the app to restart
|
||||||
Then I should find "Acceptance test site" in the app
|
Then I should find "Acceptance test site" in the app
|
||||||
|
|
|
@ -445,13 +445,14 @@
|
||||||
case 'back':
|
case 'back':
|
||||||
foundButton = findElementsBasedOnText({ text: 'Back' })[0];
|
foundButton = findElementsBasedOnText({ text: 'Back' })[0];
|
||||||
break;
|
break;
|
||||||
case 'main menu':
|
case 'main menu': // Deprecated name.
|
||||||
|
case 'more menu':
|
||||||
foundButton = findElementsBasedOnText({
|
foundButton = findElementsBasedOnText({
|
||||||
text: 'More',
|
text: 'More',
|
||||||
near: { text: 'Notifications' },
|
near: { text: 'Notifications' },
|
||||||
})[0];
|
})[0];
|
||||||
break;
|
break;
|
||||||
case 'accounts menu' :
|
case 'user menu' :
|
||||||
foundButton = findElementsBasedOnText({ text: 'Account' })[0];
|
foundButton = findElementsBasedOnText({ text: 'Account' })[0];
|
||||||
break;
|
break;
|
||||||
case 'page menu':
|
case 'page menu':
|
||||||
|
|
|
@ -536,7 +536,7 @@ class behat_app extends behat_base {
|
||||||
/**
|
/**
|
||||||
* Presses standard buttons in the app.
|
* Presses standard buttons in the app.
|
||||||
*
|
*
|
||||||
* @Given /^I press the (back|main menu|page menu|accounts menu) button in the app$/
|
* @Given /^I press the (back|more menu|page menu|user menu|main menu) button in the app$/
|
||||||
* @param string $button Button type
|
* @param string $button Button type
|
||||||
* @throws DriverException If the button push doesn't work
|
* @throws DriverException If the button push doesn't work
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -25,7 +25,7 @@ Feature: It navigates properly using deep links.
|
||||||
Scenario: Receive a push notification
|
Scenario: Receive a push notification
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student2"
|
And I log in as "student2"
|
||||||
And I press the accounts menu button in the app
|
And I press the user menu button in the app
|
||||||
And I press "Log out" in the app
|
And I press "Log out" in the app
|
||||||
And I wait the app to restart
|
And I wait the app to restart
|
||||||
And I press "Add a new account" in the app
|
And I press "Add a new account" in the app
|
||||||
|
|
|
@ -24,10 +24,10 @@ Feature: It navigates properly in pages with a split-view component.
|
||||||
|
|
||||||
Scenario: Navigate in grades tab on mobile
|
Scenario: Navigate in grades tab on mobile
|
||||||
|
|
||||||
# Open accounts menu
|
# Open user menu
|
||||||
Given I enter the app
|
Given I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press the accounts menu button in the app
|
And I press the user menu button in the app
|
||||||
|
|
||||||
# Open grades page
|
# Open grades page
|
||||||
When I press "Grades" in the app
|
When I press "Grades" in the app
|
||||||
|
@ -87,11 +87,11 @@ Feature: It navigates properly in pages with a split-view component.
|
||||||
|
|
||||||
Scenario: Navigate in grades tab on tablet
|
Scenario: Navigate in grades tab on tablet
|
||||||
|
|
||||||
# Open accounts menu
|
# Open user menu
|
||||||
Given I enter the app
|
Given I enter the app
|
||||||
And I change viewport size to "1200x640"
|
And I change viewport size to "1200x640"
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press the accounts menu button in the app
|
And I press the user menu button in the app
|
||||||
|
|
||||||
# Open grades page
|
# Open grades page
|
||||||
When I press "Grades" in the app
|
When I press "Grades" in the app
|
||||||
|
|
|
@ -6,10 +6,10 @@ Feature: Plugins work properly.
|
||||||
| username |
|
| username |
|
||||||
| studentusername |
|
| studentusername |
|
||||||
|
|
||||||
Scenario: See main menu button
|
Scenario: See more menu button
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "studentusername"
|
And I log in as "studentusername"
|
||||||
And I press the main menu button in the app
|
And I press the more menu button in the app
|
||||||
Then I should find "Moodle Mobile language strings" in the app
|
Then I should find "Moodle Mobile language strings" in the app
|
||||||
|
|
||||||
When I press "Moodle Mobile language strings" in the app
|
When I press "Moodle Mobile language strings" in the app
|
||||||
|
|
Loading…
Reference in New Issue