From 787dedcd5ca2a75e74e99ffaf461212d5ebed66e Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Tue, 11 Feb 2020 19:51:09 -0800 Subject: [PATCH] Fix flaky host volumes test --- ui/mirage/factories/node.js | 2 +- ui/tests/pages/clients/detail.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/mirage/factories/node.js b/ui/mirage/factories/node.js index 0efcb6876..51a3cdd30 100644 --- a/ui/mirage/factories/node.js +++ b/ui/mirage/factories/node.js @@ -171,7 +171,7 @@ function makeHostVolumes() { ReadOnly: faker.random.boolean(), }); - const volumes = provide(faker.random.number(5), generate); + const volumes = provide(faker.random.number({ min: 1, max: 5 }), generate); return volumes.reduce((hash, volume) => { hash[volume.Name] = volume; return hash; diff --git a/ui/tests/pages/clients/detail.js b/ui/tests/pages/clients/detail.js index 4b75b511d..33d2d05dd 100644 --- a/ui/tests/pages/clients/detail.js +++ b/ui/tests/pages/clients/detail.js @@ -77,7 +77,7 @@ export default create({ message: text('[data-test-client-event-message]'), }), - hasHostVolumes: isPresent('[data-test-client-host-volumes'), + hasHostVolumes: isPresent('[data-test-client-host-volumes]'), hostVolumes: collection('[data-test-client-host-volume]', { name: text('[data-test-name]'), path: text('[data-test-path]'),