Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for Alerts summary text #699

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions tests/ia/alerts_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
);
2 changes: 2 additions & 0 deletions tests/ia/pages/alertRulesPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading