diff --git a/common/app/routes/challenges/Test-Suite.jsx b/common/app/routes/challenges/Test-Suite.jsx index d11837d911..fd4962dd39 100644 --- a/common/app/routes/challenges/Test-Suite.jsx +++ b/common/app/routes/challenges/Test-Suite.jsx @@ -8,6 +8,20 @@ const propTypes = { tests: PropTypes.arrayOf(PropTypes.object) }; +function getAccessibleText(err, pass, text) { + let accessibleText = 'Waiting'; + + // Determine test status (i.e. icon) + if (err) { + accessibleText += 'Error '; + } else if (pass) { + accessibleText += 'Pass'; + } + + // Append the text itself + return accessibleText + ' - ' + text; +} + export default class TestSuite extends PureComponent { renderTests(tests = []) { // err && pass > invalid state @@ -22,14 +36,22 @@ export default class TestSuite extends PureComponent { 'ion-refresh refresh-icon': !err && !pass }); return ( - + - +