<?php
/**
 * Gallery
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Olivier Paroz <galleryapps@oparoz.com>
 *
 * @copyright Olivier Paroz 2016
 */

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('Gallery', '#appmenu');
$I->seeCurrentUrlEquals(GalleryPage::$URL);
$I->seeElement(['css' => GalleryPage::$contentDiv]);

<?php
/**
 * Gallery
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Olivier Paroz <galleryapps@oparoz.com>
 *
 * @copyright Olivier Paroz 2016
 */

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('.menutoggle');
$I->click('Gallery', '#navigation');
$I->seeCurrentUrlEquals(GalleryPage::$URL);
$I->seeElement(['css' => GalleryPage::$contentDiv]);

--- 
+++ 
@@ -22,8 +22,6 @@
 $loginPage->login('admin', 'admin');
 $loginPage->confirmLogin();
 
-
-$I->click('.menutoggle');
-$I->click('Gallery', '#navigation');
+$I->click('Gallery', '#appmenu');
 $I->seeCurrentUrlEquals(GalleryPage::$URL);
 $I->seeElement(['css' => GalleryPage::$contentDiv]);
Fix the acceptance tests sine we have a fancy new appmenu!

Signed-off-by: Roeland Jago Douma <982d370f7dc34a05b4abe8788f899578d515262d@famdouma.nl>
