summaryrefslogtreecommitdiffstats
path: root/cypress_test/integration_tests/common/helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'cypress_test/integration_tests/common/helper.js')
-rw-r--r--cypress_test/integration_tests/common/helper.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/cypress_test/integration_tests/common/helper.js b/cypress_test/integration_tests/common/helper.js
index b43eb4d54a..66a627b774 100644
--- a/cypress_test/integration_tests/common/helper.js
+++ b/cypress_test/integration_tests/common/helper.js
@@ -1211,8 +1211,7 @@ function overlayItemHasDifferentBoundsThan(itemDivId, bounds) {
// selector - selector to find the correct input item in the DOM.
// text - string to type in (can contain cypress command strings).
// clearBefore - whether clear the existing content or not.
-// prop - whether the value is set as property or attribute (depends on implementation).
-function typeIntoInputField(selector, text, clearBefore = true, prop = true)
+function typeIntoInputField(selector, text, clearBefore = true)
{
cy.log('Typing into input field - start.');
@@ -1226,13 +1225,8 @@ function typeIntoInputField(selector, text, clearBefore = true, prop = true)
.type(text + '{enter}');
}
- if (prop) {
- cy.get(selector)
- .should('have.prop', 'value', text);
- } else {
- cy.get(selector)
- .should('have.attr', 'value', text);
- }
+ cy.get(selector)
+ .should('have.value', text);
cy.log('Typing into input field - end.');
}