tests/Acceptance/merging/AllAmendmentsExcludingSomeCept.php
<?php

/** @var \Codeception\Scenario $scenario */
use Tests\Support\AcceptanceTester;

$I = new AcceptanceTester($scenario);
$I->populateDBData1();

$I->gotoConsultationHome()->gotoMotionView(2);
$I->wantTo('merge the amendments');
$I->loginAsStdAdmin();
$I->click('.sidebarActions .mergeamendments a');

$I->see('Einpflegen beginnen');
$I->checkOption('.toMergeAmendments #markAmendment1');
$I->uncheckOption('.toMergeAmendments #markAmendment3');
$I->checkOption('.toMergeAmendments #markAmendment270');
$I->checkOption('.toMergeAmendments #markAmendment272');
$I->checkOption('.toMergeAmendments #markAmendment273');
$I->checkOption('.toMergeAmendments #markAmendment274');
$I->checkOption('.toMergeAmendments #markAmendment276');

$I->click('.mergeAllRow .btn-primary');
$I->see('annehmen oder ablehnen');

$I->wait(1);

$I->see('Neue Zeile', '.ice-ins');
$I->dontSee('Neuer Punkt');


$I->wantTo('try another combination');

// Prevent the alert from disturbing the window
$I->executeJS(' $(window).unbind("beforeunload");');

$I->gotoConsultationHome()->gotoMotionView(2);
$I->click('.sidebarActions .mergeamendments a');
$I->checkOption('.toMergeAmendments #markAmendment1');
$I->checkOption('.toMergeAmendments #markAmendment3');
$I->uncheckOption('.toMergeAmendments #markAmendment270');
$I->checkOption('.toMergeAmendments #markAmendment272');
$I->checkOption('.toMergeAmendments #markAmendment273');
$I->checkOption('.toMergeAmendments #markAmendment274');
$I->checkOption('.toMergeAmendments #markAmendment276');
$I->click('.mergeAllRow .btn-primary');

$I->see('annehmen oder ablehnen');

$I->wait(1);

$I->dontSee('Neue Zeile');
$I->see('Neuer Punkt', '.ice-ins');
