diff --git a/addons/core/translations/en-us.yaml b/addons/core/translations/en-us.yaml index 304b5fc01..1e5e250dd 100644 --- a/addons/core/translations/en-us.yaml +++ b/addons/core/translations/en-us.yaml @@ -101,4 +101,5 @@ unsupported-controller: buttons: download: Download supported version releases-page: Go to releases page + change-cluster-url: Change cluster URL error: Unable to download supported version of desktop app. You’ll need to download version 1.7.1 from the releases page diff --git a/ui/desktop/app/styles/app.scss b/ui/desktop/app/styles/app.scss index aed182887..b5453e015 100644 --- a/ui/desktop/app/styles/app.scss +++ b/ui/desktop/app/styles/app.scss @@ -690,3 +690,8 @@ $chevron-down: url("data:image/svg+xml;utf-8, - + + {{/unless}} \ No newline at end of file diff --git a/ui/desktop/tests/acceptance/scopes-test.js b/ui/desktop/tests/acceptance/scopes-test.js index e10107cda..8d6e1880a 100644 --- a/ui/desktop/tests/acceptance/scopes-test.js +++ b/ui/desktop/tests/acceptance/scopes-test.js @@ -340,4 +340,36 @@ module('Acceptance | scopes', function (hooks) { .dom('[data-test-releases-link]') .hasAttribute('href', 'https://releases.hashicorp.com/boundary-desktop/'); }); + + test('pagination is not supported - navigate to cluster url page', async function (assert) { + invalidateSession(); + this.stubClientDaemonSearch(); + this.ipcStub.withArgs('checkOS').returns({ + isWindows: true, + isMac: false, + isLinux: false, + }); + this.server.get('/scopes', () => { + // no "list_token" field + return new Response(200, {}, { scopes: [] }); + }); + this.server.get('https://api.releases.hashicorp.com/*', () => { + return new Response(200, {}, META_DATA_RESPONSE); + }); + + await visit(urls.targets); + + await waitFor('[data-test-unsupported-controller]'); + assert.dom('[data-test-unsupported-controller]').exists(); + assert + .dom('[data-test-download-link]') + .hasAttribute('href', 'windows.fake.download.zip'); + assert + .dom('[data-test-change-cluster-url]') + .hasAttribute('href', '/cluster-url'); + + await click('[data-test-change-cluster-url]'); + + assert.strictEqual(currentURL(), urls.clusterUrl); + }); });