OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
35
tests/Acceptance/InstallCest.php
Normal file
35
tests/Acceptance/InstallCest.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Acceptance;
|
||||
|
||||
use Codeception\Attribute\Depends;
|
||||
use Codeception\Attribute\Group;
|
||||
use Tests\Support\AcceptanceTester;
|
||||
use Tests\Support\Page\Acceptance\Install;
|
||||
|
||||
class InstallCest
|
||||
{
|
||||
public function _before(AcceptanceTester $I) {}
|
||||
|
||||
#[Group('install, api')]
|
||||
public function installPageWorks(AcceptanceTester $I): void
|
||||
{
|
||||
$I->amOnPage('/install');
|
||||
$I->waitForElementVisible('.registrationForm', 10);
|
||||
|
||||
$I->see('Install');
|
||||
}
|
||||
|
||||
#[Group('install, api')]
|
||||
#[Depends('installPageWorks')]
|
||||
public function createDBSuccessfully(AcceptanceTester $I, Install $installPage): void
|
||||
{
|
||||
$installPage->install(
|
||||
'test@leantime.io',
|
||||
'Test123456!',
|
||||
'John',
|
||||
'Smith',
|
||||
'Smith & Co'
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user