From db2a40b58fe8de4540e2f79769e152284d187feb Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Date: Mon, 7 Jun 2021 08:28:10 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Modify=20test=20to=20fit?= =?UTF-8?q?=20latest=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modify tests to fit the latest changes within the confirmation/success dialog and the brand new conection dialog --- ui/desktop/tests/acceptance/projects/targets-test.js | 4 ++-- .../tests/acceptance/projects/targets/hosts-test.js | 6 +++--- .../tests/acceptance/projects/targets/sessions-test.js | 8 ++++---- ui/desktop/tests/acceptance/scopes-test.js | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ui/desktop/tests/acceptance/projects/targets-test.js b/ui/desktop/tests/acceptance/projects/targets-test.js index ebda82cc1..70574f123 100644 --- a/ui/desktop/tests/acceptance/projects/targets-test.js +++ b/ui/desktop/tests/acceptance/projects/targets-test.js @@ -227,11 +227,11 @@ module('Acceptance | projects | targets', function (hooks) { 'tbody tr:first-child td:last-child button', 'Activate connect mode' ); - assert.ok(find('.rose-dialog-success'), 'Success dialog'); + assert.ok(find('.connection-dialog'), 'Success dialog'); assert.equal(findAll('.rose-dialog-footer button').length, 1); assert.equal( find('.rose-dialog-footer button').textContent.trim(), - 'OK', + 'Close', 'Cannot retry' ); assert.equal( diff --git a/ui/desktop/tests/acceptance/projects/targets/hosts-test.js b/ui/desktop/tests/acceptance/projects/targets/hosts-test.js index de1d7162c..326832ff6 100644 --- a/ui/desktop/tests/acceptance/projects/targets/hosts-test.js +++ b/ui/desktop/tests/acceptance/projects/targets/hosts-test.js @@ -219,10 +219,10 @@ module('Acceptance | projects | targets | hosts', function (hooks) { 'tbody tr:first-child td:last-child button', 'Activate connect mode' ); - assert.ok(find('.rose-dialog-success'), 'Success dialog'); + assert.ok(find('.connection-dialog'), 'Success dialog'); assert.equal( - find('.rose-dialog-footer .rose-button-primary').textContent.trim(), - 'OK', + find('.rose-dialog-footer .rose-button-secondary').textContent.trim(), + 'Close', 'Cannot retry' ); assert.equal( diff --git a/ui/desktop/tests/acceptance/projects/targets/sessions-test.js b/ui/desktop/tests/acceptance/projects/targets/sessions-test.js index e6031ab88..a4704307b 100644 --- a/ui/desktop/tests/acceptance/projects/targets/sessions-test.js +++ b/ui/desktop/tests/acceptance/projects/targets/sessions-test.js @@ -295,10 +295,10 @@ module('Acceptance | projects | targets | sessions', function (hooks) { later(async () => { run.cancelTimers(); await click('.rose-layout-page-actions button', 'Activate connect mode'); - assert.ok(find('.rose-dialog-success'), 'Success dialog'); + assert.ok(find('.connection-dialog'), 'Success dialog'); assert.equal( - find('.rose-dialog-footer .rose-button-primary').textContent.trim(), - 'OK', + find('.rose-dialog-footer .rose-button-secondary').textContent.trim(), + 'Close', 'Cannot retry' ); assert.equal( @@ -325,7 +325,7 @@ module('Acceptance | projects | targets | sessions', function (hooks) { run.cancelTimers(); instances.session.update('status', 'active'); await click('.rose-layout-page-actions button', 'Activate connect mode'); - assert.ok(find('.rose-dialog-success'), 'Success dialog'); + assert.ok(find('.connection-dialog'), 'Success dialog'); await click('.rose-dialog-dismiss'); assert.equal( find( diff --git a/ui/desktop/tests/acceptance/scopes-test.js b/ui/desktop/tests/acceptance/scopes-test.js index cb15c0af9..646bf9f67 100644 --- a/ui/desktop/tests/acceptance/scopes-test.js +++ b/ui/desktop/tests/acceptance/scopes-test.js @@ -292,11 +292,11 @@ module('Acceptance | scopes', function (hooks) { 'tbody tr:first-child td:last-child button', 'Activate connect mode' ); - assert.ok(find('.rose-dialog-success'), 'Success dialog'); + assert.ok(find('.connection-dialog'), 'Success dialog'); assert.equal(findAll('.rose-dialog-footer button').length, 1); assert.equal( find('.rose-dialog-footer button').textContent.trim(), - 'OK', + 'Close', 'Cannot retry' ); }, 750);