OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
46
tests/Acceptance/GoalsCest.php
Normal file
46
tests/Acceptance/GoalsCest.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace Acceptance;
|
||||
|
||||
use Codeception\Attribute\Depends;
|
||||
use Codeception\Attribute\Group;
|
||||
use Tests\Support\AcceptanceTester;
|
||||
use Tests\Support\Page\Acceptance\Login;
|
||||
|
||||
/**
|
||||
* Acceptance tests for the Goals (Goalcanvas) domain after it was decoupled
|
||||
* from the deprecated Canvas domain (its repository now extends Blueprints and
|
||||
* its controllers no longer extend the Canvas controllers). These smoke tests
|
||||
* confirm the goal pages still render end-to-end through the decoupled stack.
|
||||
*/
|
||||
class GoalsCest
|
||||
{
|
||||
public function _before(AcceptanceTester $I, Login $loginPage): void
|
||||
{
|
||||
$loginPage->login('test@leantime.io', 'Test123456!');
|
||||
}
|
||||
|
||||
#[Group('goals')]
|
||||
#[Depends('Acceptance\InstallCest:createDBSuccessfully')]
|
||||
public function goalDashboardLoads(AcceptanceTester $I): void
|
||||
{
|
||||
$I->wantTo('Open the goals dashboard');
|
||||
|
||||
$I->amOnPage('/goalcanvas/dashboard');
|
||||
$I->waitForElementVisible('.pageheader', 30);
|
||||
$I->dontSee('Whoops');
|
||||
$I->dontSee('Fatal error');
|
||||
}
|
||||
|
||||
#[Group('goals')]
|
||||
#[Depends('Acceptance\InstallCest:createDBSuccessfully')]
|
||||
public function goalCanvasLoads(AcceptanceTester $I): void
|
||||
{
|
||||
$I->wantTo('Open the goals canvas board');
|
||||
|
||||
$I->amOnPage('/goalcanvas/showCanvas');
|
||||
$I->waitForElementVisible('.pageheader', 30);
|
||||
$I->dontSee('Whoops');
|
||||
$I->dontSee('Fatal error');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user