Private GIT

Skip to content
Snippets Groups Projects
Commit 1e427afc authored by loiclau's avatar loiclau
Browse files

fix(acceptance) fix custom output broker selector and style

parent 94e1b7c6
Branches
Tags
No related merge requests found
......@@ -40,15 +40,20 @@ class BrokerConfigurationContext extends CentreonContext
$this->spin(
function ($context) use ($page) {
return $context->getSession()->getPage()->has('css', 'tbody#output_1 tr.list_one td input.v_required');
return $context->getSession()->getPage()->has('css', 'tr.list_one td input.v_required');
}
);
$this->assertFind('css', 'tbody#output_1 tr.list_one td input.v_required')->setValue($this->luaProperties['name']);
$this->assertFind('css', 'tbody#output_1 tr.list_two td input.v_required')->setValue($this->luaProperties['path']);
$this->selectInList('tbody#output_1 tr:nth-child(1) td.FormRowValue:nth-child(2) select', $this->luaProperties['metricType']);
$this->assertFind('css', 'tbody#output_1 tr.list_one:nth-child(2) td:nth-child(2).FormRowValue input')->setValue($this->luaProperties['metricName']);
$this->assertFind('css', 'tbody#output_1 tr:nth-child(1) td.FormRowValue input.v_number')->setValue($this->luaProperties['metricValue']);
$this->assertFind('css', 'tr.list_one td input.v_required')->setValue($this->luaProperties['name']);
$this->assertFind('css', 'tr.list_two td input.v_required')->setValue($this->luaProperties['path']);
$this->selectInList(
'tbody#output_1 tr:nth-child(1) td.FormRowValue:nth-child(2) select',
$this->luaProperties['metricType']
);
$this->assertFind('css', 'tbody#output_1 tr.list_one:nth-child(2) td:nth-child(2).FormRowValue input')
->setValue($this->luaProperties['metricName']);
$this->assertFind('css', 'tbody#output_1 tr:nth-child(1) td.FormRowValue input.v_number')
->setValue($this->luaProperties['metricValue']);
$this->currentPage->save();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment