Skip to content

Commit

Permalink
fix: 🐛 Fix theme selector not properly selecting option (#2495)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedLi committed Sep 24, 2024
1 parent 20e6df5 commit ace65ea
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ui/desktop/app/components/settings-card/application/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import Component from '@glimmer/component';
import { inject as service } from '@ember/service';

const THEMES = [
{
Expand All @@ -21,6 +22,9 @@ const THEMES = [
];

export default class SettingsApplicationComponent extends Component {
// =services
@service session;

/**
* Returns available themes
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const LAST_ERROR_MESSAGE = '.hds-reveal__content > p:last-child';

module('Integration | Component | settings-card/application', function (hooks) {
setupRenderingTest(hooks);
setupIntl(hooks);
setupIntl(hooks, 'en-us');

let model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module(
'Integration | Component | settings-card/client-agent',
function (hooks) {
setupRenderingTest(hooks);
setupIntl(hooks);
setupIntl(hooks, 'en-us');

test('it renders running badge and pause button', async function (assert) {
this.set('model', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { setupIntl } from 'ember-intl/test-support';

module('Integration | Component | settings-card/logs', function (hooks) {
setupRenderingTest(hooks);
setupIntl(hooks);
setupIntl(hooks, 'en-us');

const SELECTED_OPTION = 'select option:checked';
const COPY_BUTTON_TEXT = '.hds-copy-snippet__text';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SERVER_URL = '[data-test-server-url]';

module('Integration | Component | settings-card/server', function (hooks) {
setupRenderingTest(hooks);
setupIntl(hooks);
setupIntl(hooks, 'en-us');

const setDefaultClusterUrl = (test) => {
const windowOrigin = 'hashicorp.cloud';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const AUTHENTICATION_BADGE = '.hds-badge__text';

module('Integration | Component | settings-card/user', function (hooks) {
setupRenderingTest(hooks);
setupIntl(hooks);
setupIntl(hooks, 'en-us');

test('it renders password correctly', async function (assert) {
this.owner.register(
Expand Down

0 comments on commit ace65ea

Please sign in to comment.