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

Update   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A updatePrices() 0 15 2
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