fix enterprise routing assertion (#6495)

This commit is contained in:
Matthew Irish 2019-03-28 16:09:35 -05:00 committed by GitHub
parent 63705661b4
commit bd209a77ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ const disableReplication = async (type, assert) => {
await click('[data-test-disable-replication] button'); await click('[data-test-disable-replication] button');
await withFlash(click('[data-test-confirm-button]'), () => { await withFlash(click('[data-test-confirm-button]'), () => {
if (assert) { if (assert) {
assert.equal(currentURL(), `/vault/replication/${type}/manage`, 'redirects to the replication page'); assert.equal(currentURL(), `/vault/replication/${type}`, 'redirects to the replication page');
assert.equal( assert.equal(
// TODO better test selectors for flash messages // TODO better test selectors for flash messages
find('[data-test-flash-message-body]').textContent.trim(), find('[data-test-flash-message-body]').textContent.trim(),