<?php

use tests\common\TestCommon;

$I = new FunctionalTester($scenario);
TestCommon::logMeIn($I);

$I->wantTo('ensure that view tem page works');

$I->amOnPage('/item/1');
$I->expectTo('see Back button');
$I->seeElement('a.btn');
$I->expectTo('see table with item info');
$I->seeElement('table.table');

$I->wantTo('click to Back button');
$I->click('Back');
$I->expectTo('to be redirected to front page');
$I->see(TestCommon::FRONT_PAGE_HEADER, 'h1');
$I->seeCurrentUrlEquals('/');

TestCommon::logMeOut($I);

Add func test for ItemView page
Add func test for ItemView page
