diff --git a/ui/tests/acceptance/secrets/backend/kv/secret-test.js b/ui/tests/acceptance/secrets/backend/kv/secret-test.js index 860fed070738..7fb54e5ced4f 100644 --- a/ui/tests/acceptance/secrets/backend/kv/secret-test.js +++ b/ui/tests/acceptance/secrets/backend/kv/secret-test.js @@ -255,7 +255,7 @@ module('Acceptance | secrets/secret/create', function(hooks) { let paths = [ '(', ')', - '"', + //'"', //"'", '!', '#', @@ -290,21 +290,23 @@ module('Acceptance | secrets/secret/create', function(hooks) { } }); - // the web cli does not handle a single quote in a path, so we test it here via the UI - test('creating a secret with a single quote works properly', async function(assert) { + // the web cli does not handle a quote as part of a path, so we test it here via the UI + test('creating a secret with a single or double quote works properly', async function(assert) { await consoleComponent.runCommands('write sys/mounts/kv type=kv'); - let path = "'some"; - await listPage.visitRoot({ backend: 'kv' }); - await listPage.create(); - await editPage.createSecret(`${path}/2`, 'foo', 'bar'); - await listPage.visit({ backend: 'kv', id: path }); - assert.ok(listPage.secrets.filterBy('text', '2')[0], `${path}: secret is displayed properly`); - await listPage.secrets.filterBy('text', '2')[0].click(); - assert.equal( - currentRouteName(), - 'vault.cluster.secrets.backend.show', - `${path}: show page renders correctly` - ); + let paths = ["'some", '"some']; + for (let path of paths) { + await listPage.visitRoot({ backend: 'kv' }); + await listPage.create(); + await editPage.createSecret(`${path}/2`, 'foo', 'bar'); + await listPage.visit({ backend: 'kv', id: path }); + assert.ok(listPage.secrets.filterBy('text', '2')[0], `${path}: secret is displayed properly`); + await listPage.secrets.filterBy('text', '2')[0].click(); + assert.equal( + currentRouteName(), + 'vault.cluster.secrets.backend.show', + `${path}: show page renders correctly` + ); + } }); test('filter clears on nav', async function(assert) {