Commit ece0e3a0 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Update tests to reflect renaming of 'small caption' to 'small highlight'

parent 41384cc2
......@@ -1133,22 +1133,22 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->drupalLogin($this->drupalUsers['administrator']);
// Test case 1:
// Make sure manage fields of uw para fact figure
// includes 'Small caption' with value 'small'.
// includes 'Small highlight' with value 'small'.
$this->drupalGet('admin/structure/paragraphs_type/uw_para_fact_figure/fields/paragraph.uw_para_fact_figure.field_uw_ff_info');
$this->assertSession()->statusCodeEquals(200);
$smallcaption = $this->assertSession()->optionExists('default_value_input[field_uw_ff_info][0][style]', 'small');
$this->assertTrue($smallcaption);
$this->assertEquals('Small caption', $smallcaption->getText());
$smallhighlight = $this->assertSession()->optionExists('default_value_input[field_uw_ff_info][0][style]', 'small');
$this->assertTrue($smallhighlight);
$this->assertEquals('Small highlight', $smallhighlight->getText());
// Test case 2:
// Make sure adding facts and figures block, the config
// block includes 'Small cation' with value 'small'.
// block includes 'Small highlight' with value 'small'.
$this->drupalGet('node/1/layout');
$this->assertSession()->statusCodeEquals(200);
$this->clickLink('Add block');
$this->clickLink('Facts and figures');
$smallcaption = $this->assertSession()->optionExists('settings[block_form][field_uw_ff_fact_figure][0][subform][field_uw_fact_figure][0][subform][field_uw_ff_info][0][style]', 'small');
$this->assertTrue($smallcaption);
$this->assertEquals('Small caption', $smallcaption->getText());
$smallhighlight = $this->assertSession()->optionExists('settings[block_form][field_uw_ff_fact_figure][0][subform][field_uw_fact_figure][0][subform][field_uw_ff_info][0][style]', 'small');
$this->assertTrue($smallhighlight);
$this->assertEquals('Small highlight', $smallhighlight->getText());
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment