feat: 🎸 Modify test to fit latest changes
Modify tests to fit the latest changes within the confirmation/success dialog and the brand new conection dialog
This commit is contained in:
1 parent
f14346d3a4
commit
db2a40b58f
4 files changed
+11
-11
No files matched your search
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user