Skip to content

Commit edb79a8

Browse files
author
Bogdan Plieshka
committed
MAGETWO-32190: WAI-ARIA in Product Item on Category page and Related Products
- Fixed integration tests
1 parent 5e84ef3 commit edb79a8

File tree

2 files changed

+4
-3
lines changed
  • app/code/Magento/Theme/view/frontend/templates/html
  • dev/tests/integration/testsuite/Magento/Catalog/Controller

2 files changed

+4
-3
lines changed

app/code/Magento/Theme/view/frontend/templates/html/title.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ if (trim($block->getPageTitle())) {
1818
?>
1919
<?php if ($title): ?>
2020
<div class="page-title<?php echo $cssClass; ?>">
21-
<h1 class="title" <?php if ($block->getId()): ?> id="<?php echo $block->getId();?>" <?php endif; ?>
21+
<h1 class="title"
22+
<?php if ($block->getId()): ?> id="<?php echo $block->getId();?>" <?php endif; ?>
2223
<?php if ($block->getAddBaseAttributeAria()): ?>
2324
aria-labelledby="<?php echo $block->getAddBaseAttributeAria(); ?>"
2425
<?php endif; ?>>

dev/tests/integration/testsuite/Magento/Catalog/Controller/CategoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getViewActionDataProvider()
3030
'%acategorypath-category-1-category-1-1-category-1-1-1%a',
3131
'%acategory-category-1-1-1%a',
3232
'%a<title>Category 1.1.1 - Category 1.1 - Category 1</title>%a',
33-
'%a<h1%S>%SCategory 1.1.1%S</h1>%a',
33+
'%a<h1%a>%SCategory 1.1.1%S</h1>%a',
3434
'%aSimple Product Two%a',
3535
'%a$45.67%a'
3636
],
@@ -42,7 +42,7 @@ public function getViewActionDataProvider()
4242
'%acategorypath-category-1-category-1-1%a',
4343
'%acategory-category-1-1%a',
4444
'%a<title>Category 1.1 - Category 1</title>%a',
45-
'%a<h1%S>%SCategory 1.1%S</h1>%a',
45+
'%a<h1%a>%SCategory 1.1%S</h1>%a',
4646
'%aSimple Product%a',
4747
'%a$10.00%a',
4848
'%aSimple Product Two%a',

0 commit comments

Comments
 (0)