Completed
Push — master ( b66556...89216d )
by Dmitry
21:57
created

Update::updatePrices()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.7666
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace hipanel\modules\finance\tests\_support\Page\price;
4
5
class Update extends View
6
{
7
    public function updatePrices(): void
8
    {
9
        $I = $this->tester;
10
11
        $this->loadPage();
12
        for ($i = 1; $i < 10; $i++) {
13
            $I->click("(//tbody/tr/td/input[@type='checkbox'])[{$i}]");
14
        }
15
        $I->click('Update');
16
        $I->waitForText('Update');
17
        $this->fillRandomPrices('templateprice');
18
        $I->click('Save');
19
        $I->closeNotification('Prices were successfully updated');
20
        $this->seeRandomPrices();
21
    }
22
}
23