diff --git a/tests/ia/alerts_test.js b/tests/ia/alerts_test.js index ff34286b8..eb6213419 100644 --- a/tests/ia/alerts_test.js +++ b/tests/ia/alerts_test.js @@ -181,3 +181,21 @@ Scenario( I.seeElement(alertsPage.elements.noAlerts); }, ); + +Scenario( + 'PMM-12442 Let users see full summary message on Fired alerts tab @ia @alerting-fb', + async ({ + I, alertsPage, alertRulesPage, + }) => { + I.amOnPage(alertsPage.url); + I.waitForElement(alertsPage.elements.firedAlertLink(ruleName), 180); + I.click(alertsPage.elements.firedAlertLink(ruleName)); + I.click(alertRulesPage.buttons.editRuleOnView); + let summaryText = String("PostgreSQL very long text for Summary, PMM-12442 Let users see full summary message on Fired alerts tab"); + I.fillField(alertRulesPage.fields.editSummary, summaryText); + I.click(alertRulesPage.buttons.saveAndExit); + I.amOnPage(alertsPage.url); + I.waitForText(summaryText,180); + I.see(summaryText, alertRulesPage.fields.tableBody); + }, +); diff --git a/tests/ia/pages/alertRulesPage.js b/tests/ia/pages/alertRulesPage.js index e04a339c3..9fcab401f 100644 --- a/tests/ia/pages/alertRulesPage.js +++ b/tests/ia/pages/alertRulesPage.js @@ -51,7 +51,9 @@ module.exports = { editRuleThreshold: 'input[name=\'evaluateFor\']', editRuleEvaluate: 'input[name=\'evaluateEvery\']', editRuleSeverity: I.useDataQA('label-value-1'), + editSummary: I.useDataQA('annotation-value-1'), templatesLoader: locate('//div[@id=\'template\']').find('div').withText('Choose'), + tableBody : I.useDataQA('table-tbody'), }, messages: { noRulesFound: 'You haven`t created any alert rules yet',