fix copybranch assethelper test to wait for fork
This commit is contained in:
parent
b0b1a299d5
commit
30c2c2c418
1 changed files with 2 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ addToCleanup( $tag );
|
|||
|
||||
my $mech = WebGUI::Test::Mechanize->new( config => WebGUI::Test->file );
|
||||
$mech->get_ok( '/?op=assetHelper;className=WebGUI::AssetHelper::CopyBranch;method=copy;with=children;assetId=' . $top->getId );
|
||||
WebGUI::Test->waitForAllForks;
|
||||
|
||||
my $clippies = $root->getLineage(["descendants"], {statesToInclude => [qw{clipboard clipboard-limbo}], returnObjects => 1,});
|
||||
is @{ $clippies }, 2, '... copied 2 asset to the clipboard';
|
||||
|
|
@ -83,6 +84,7 @@ for my $asset ( @$clippies ) {
|
|||
}
|
||||
|
||||
$mech->get_ok( '/?op=assetHelper;className=WebGUI::AssetHelper::CopyBranch;method=copy;with=descendants;assetId=' . $top->getId );
|
||||
WebGUI::Test->waitForAllForks;
|
||||
my $clippies = $root->getLineage(["descendants"], {statesToInclude => [qw{clipboard clipboard-limbo}], returnObjects => 1,});
|
||||
is @{ $clippies }, 3, '... copied 3 asset to the clipboard';
|
||||
addToCleanup( @$clippies );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue