fix: 🐛 Fix theme selector not properly selecting option (#2495)
This commit is contained in:
1 parent
20e6df522a
commit
ace65eab3a
6 files changed
+9
-5
No files matched your search
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
import Component from '@glimmer/component';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
||||
const THEMES = [
|
||||
{
|
||||
@@ -21,6 +22,9 @@ const THEMES = [
|
||||
];
|
||||
|
||||
export default class SettingsApplicationComponent extends Component {
|
||||
// =services
|
||||
@service session;
|
||||
|
||||
/**
|
||||
* Returns available themes
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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', {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user