Issue #1643386 by Grevil, Anybody, vasike, lauriii, Spokje, nod_, bnjmnm,...
Issue #1643386 by Grevil, Anybody, vasike, lauriii, Spokje, nod_, bnjmnm, Pancho, tim.plunkett, longwave: Strip useless "_" at beginning and end of JS-transliterated machine names
'message'=>'A title that should not be transliterated must be equal to the php generated machine name',
'expected'=>'0123456789_test_value_9876543210',
],
[
'input'=>'_Test_Value_',
'message'=>'A title that should not be transliterated must be equal to the php generated machine name',
'expected'=>'test_value',
],
];
// Get page and session.
@@ -118,7 +138,7 @@ public function testMachineName() {
$this->assertFalse($machine_name_2_wrapper->isVisible(),'The ID field must not be visible');
// Validate if the element contains the correct value.
$this->assertEquals($test_values[1]['expected'],$machine_name_1_field->getValue(),'The ID field value must be equal to the php generated machine name');
$this->assertEquals(end($test_values)['expected'],$machine_name_1_field->getValue(),'The ID field value must be equal to the php generated machine name');
// Test that machine name generation still occurs after an HTML 5