<commit_before><?php
/**
 * Nextcloud - Gallery
 *
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author <NAME> <<EMAIL>>
 *
 * @copyright <NAME> 2017
 */

use \Page\Acceptance\Login;
use \Page\Gallery as GalleryPage;

$I = new AcceptanceTester($scenario);
$I->am('a standard user');
$I->wantTo('load the Gallery app');
$I->lookForwardTo('seeing my holiday pictures');

$loginPage = new Login($I);
$loginPage->login('admin', 'admin');
$loginPage->confirmLogin();

$I->click('//li[*[normalize-space(text()) = "Gallery"]]/a', '#appmenu');
$I->seeCurrentUrlEquals(GalleryPage::$URL);
$I->seeElement(['css' => GalleryPage::$contentDiv]);<commit_msg>Wait for the Gallery icon to appear before clicking on it<commit_after><?php
/**
 * Nextcloud - Gallery
 *
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author <NAME> <<EMAIL>>
 *
 * @copyright <NAME> 2017
 */

use \Page\Acceptance\Login;
use \Page\Gallery as GalleryPage;

$I = new AcceptanceTester($scenario);
$I->am('a standard user');
$I->wantTo('load the Gallery app');
$I->lookForwardTo('seeing my holiday pictures');

$loginPage = new Login($I);
$loginPage->login('admin', 'admin');
$loginPage->confirmLogin();

$I->waitForElementVisible('//*[@id = "appmenu"]//li[*[normalize-space(text()) = "Gallery"]]/a', 30);
$I->click('//li[*[normalize-space(text()) = "Gallery"]]/a', '#appmenu');
$I->seeCurrentUrlEquals(GalleryPage::$URL);
$I->seeElement(['css' => GalleryPage::$contentDiv]);
{'fraction_non_alphanumeric': 0.2036685641998735, 'fraction_numerical': 0.007590132827324478, 'mean_word_length': 5.483606557377049, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '395096', 'n_tokens_mistral': 537, 'n_tokens_neox': 528, 'n_words': 131}