var massahHelper = require('massah/helper')
  , helper = massahHelper.application.helper

module.exports = (function() {
    var library = massahHelper.getLibrary()
        .then('the user has the access level (.*)', function(level) {
            var driver = this.driver

            driver.element('a[title="Settings"]').click()
            driver.wait(function() {
                return driver.element('a.change-access-level').isDisplayed(function(displayed) {
                    if (!displayed) return false
                    driver.element('a.change-access-level').html(function(label) {
                        label.should.equal(
                            'Change access\n' + level
                        )
                    })
                    return true
                })
            }, 5000, 'Waiting for access level label')
        })
    
    return library
})()

@@ -680,19 +680,82 @@
 cess
-%5Cn' + level
+ %3Cp class=%22ui-li-aside%22%3E' +%0A                                level + '%3C/p%3E'
 %0A   

Fix label checking for access level