Skip to content

Commit d8f617f

Browse files
committed
MAGETWO-91848: Hint on product option with Maximum Characters should count down as more characters are entered
- Stabilize builds
1 parent d93fc4f commit d8f617f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/View/CustomOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class CustomOptions extends Form
5858
*
5959
* @var string
6060
*/
61-
protected $maxCharacters = './/div[@class="control"]/p[@class="note"]/strong';
61+
protected $maxCharacters = './/div[@class="control"]/p[contains(@class, "note")]/strong';
6262

6363
/**
6464
* Selector for label of option value element
@@ -72,7 +72,7 @@ class CustomOptions extends Form
7272
*
7373
* @var string
7474
*/
75-
protected $noteByNumber = './/*[@class="note"][%d]/strong';
75+
protected $noteByNumber = './/*[contains(@class, "note")][%d]/strong';
7676

7777
/**
7878
* Selector for select element of option

dev/tests/js/jasmine/tests/app/code/Magento/Catalog/frontend/js/product/remaining-characters.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ define([
4747
it('check input length less than character limit', function () {
4848
var testData = {
4949
input: 'abc',
50-
action: 'keyup',
50+
action: 'change',
5151
expectedText: '(7 remaining)'
5252
};
5353

@@ -71,7 +71,7 @@ define([
7171
it('check input length greater than character limit', function () {
7272
var testData = {
7373
input: 'abcdefghijkl',
74-
action: 'keyup',
74+
action: 'change',
7575
expectedText: '(2 too many)'
7676
};
7777

0 commit comments

Comments
 (0)