mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 14:48:26 +01:00
Reactivated AccountCest
This commit is contained in:
parent
1ee06c88eb
commit
ab81ed8ca2
@ -6,64 +6,64 @@ use tests\codeception\_pages\DirectoryPage;
|
|||||||
|
|
||||||
class AccountCest
|
class AccountCest
|
||||||
{
|
{
|
||||||
/* public function testBaseAccountSettings(AcceptanceTester $I)
|
public function testBaseAccountSettings(AcceptanceTester $I)
|
||||||
{
|
{
|
||||||
$I->wantTo('ensure that the basic account settings work');
|
$I->wantTo('ensure that the basic account settings work');
|
||||||
|
|
||||||
$I->amGoingTo('save access my account settings');
|
$I->amGoingTo('save access my account settings');
|
||||||
$I->amUser();
|
$I->amUser();
|
||||||
$I->amOnProfile();
|
$I->amOnProfile();
|
||||||
|
|
||||||
$I->click('Edit account');
|
$I->click('Edit account');
|
||||||
$I->waitForText('Account settings');
|
$I->waitForText('Account settings');
|
||||||
$I->click('Settings');
|
$I->click('Settings');
|
||||||
|
|
||||||
$I->waitForText('User settings');
|
$I->waitForText('User settings');
|
||||||
|
|
||||||
$I->amGoingTo('fill the basic settings form');
|
$I->amGoingTo('fill the basic settings form');
|
||||||
|
|
||||||
$I->fillField('#accountsettings-tags', 'Tester, Actor');
|
$I->fillField('#accountsettings-tags', 'Tester, Actor');
|
||||||
#$I->selectOption('#accountsettings-language', 'Deutsch');
|
#$I->selectOption('#accountsettings-language', 'Deutsch');
|
||||||
$I->click('Save');
|
$I->click('Save');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$I->expectTo('see the german translation');
|
$I->expectTo('see the german translation');
|
||||||
$I->see('Sprache');
|
$I->see('Sprache');
|
||||||
$I->see('Speichern');
|
$I->see('Speichern');
|
||||||
$I->click('Save');
|
$I->click('Save');
|
||||||
$I->waitForElementVisible('.data-saved', 5);
|
$I->waitForElementVisible('.data-saved', 5);
|
||||||
|
|
||||||
$I->selectOption('#accountsettings-language', 'English(US)');
|
$I->selectOption('#accountsettings-language', 'English(US)');
|
||||||
$I->click('Save');
|
$I->click('Save');
|
||||||
$I->waitForElementVisible('.data-saved', 5);
|
$I->waitForElementVisible('.data-saved', 5);
|
||||||
*
|
*/
|
||||||
|
|
||||||
$I->seeSuccess('Saved');
|
$I->seeSuccess('Saved');
|
||||||
|
|
||||||
$I->amOnProfile();
|
//$I->amOnProfile();
|
||||||
$directory = DirectoryPage::openBy($I);
|
$directory = DirectoryPage::openBy($I);
|
||||||
/*$directory->clickMembers();
|
$directory->clickMembers();
|
||||||
$I->expectTo('see my user tags');
|
$I->expectTo('see my user tags');
|
||||||
$I->see('Tester');
|
$I->see('Tester');
|
||||||
$I->see('Actor');*
|
$I->see('Actor');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSaveBaseNotifications(AcceptanceTester $I)
|
public function testSaveBaseNotifications(AcceptanceTester $I)
|
||||||
{
|
{
|
||||||
$I->wantTo('ensure that the notification settings can be saved');
|
$I->wantTo('ensure that the notification settings can be saved');
|
||||||
|
|
||||||
$I->amGoingTo('save access my account settings');
|
$I->amGoingTo('save access my account settings');
|
||||||
$I->amUser();
|
$I->amUser();
|
||||||
$I->amOnProfile();
|
$I->amOnProfile();
|
||||||
|
|
||||||
$I->click('Edit account');
|
$I->click('Edit account');
|
||||||
$I->waitForText('Account settings');
|
$I->waitForText('Account settings');
|
||||||
$I->click('Settings');
|
$I->click('Settings');
|
||||||
$I->waitForText('User settings');
|
$I->waitForText('User settings');
|
||||||
|
|
||||||
$I->click('Notifications'); //Notification tab
|
$I->click('Notifications'); //Notification tab
|
||||||
$I->waitForText('Notification Settings');
|
$I->waitForText('Notification Settings');
|
||||||
|
|
||||||
$I->expectTo('see the notification settings form');
|
$I->expectTo('see the notification settings form');
|
||||||
$I->see('Following');
|
$I->see('Following');
|
||||||
$I->see('Mentionings');
|
$I->see('Mentionings');
|
||||||
@ -74,13 +74,13 @@ class AccountCest
|
|||||||
|
|
||||||
$I->scrollToBottom();
|
$I->scrollToBottom();
|
||||||
$I->click('Save', '.panel-body');
|
$I->click('Save', '.panel-body');
|
||||||
|
|
||||||
$I->seeSuccess('Saved');
|
$I->seeSuccess('Saved');
|
||||||
|
|
||||||
// Todo proper checkbox tests...
|
// Todo proper checkbox tests...
|
||||||
/*$I->amOnPage('index-test.php?r=notification%2Fuser');
|
/*$I->amOnPage('index-test.php?r=notification%2Fuser');
|
||||||
$I->waitForText('Notification Settings');
|
$I->waitForText('Notification Settings');
|
||||||
$I->seeInField('[name="NotificationSettings[settings][notification.followed_web]"]', 0);
|
$I->seeInField('[name="NotificationSettings[settings][notification.followed_web]"]', 0);
|
||||||
$I->seeInField('[name="NotificationSettings[settings][notification.comments_web]"]', 0);
|
$I->seeInField('[name="NotificationSettings[settings][notification.comments_web]"]', 0);*/
|
||||||
}*/
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user