diff --git a/cypress/e2e/tests/pages/fleet/gitrepo.spec.ts b/cypress/e2e/tests/pages/fleet/gitrepo.spec.ts index c77103c4040..dcdc0719741 100644 --- a/cypress/e2e/tests/pages/fleet/gitrepo.spec.ts +++ b/cypress/e2e/tests/pages/fleet/gitrepo.spec.ts @@ -136,7 +136,7 @@ describe('Git Repo', { testIsolation: 'off', tags: ['@fleet', '@adminUser'] }, ( prefPage.languageDropdownMenu().isOpened(); cy.intercept('PUT', 'v1/userpreferences/*').as(`prefUpdateEnUs`); - prefPage.languageDropdownMenu().clickOption(1); + prefPage.languageDropdownMenu().clickOptionWithLabel('English'); cy.wait('@prefUpdateEnUs').then(({ response }) => { expect(response?.statusCode).to.eq(200); expect(response?.body.data).to.have.property('locale', 'en-us'); diff --git a/shell/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue b/shell/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue index c8d20b88e66..359d3006552 100644 --- a/shell/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue +++ b/shell/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue @@ -213,7 +213,7 @@ export default { return undefined; }, set(v) { - this.value['for'] = [null, undefined].includes(v ? undefined : `${ v }s`); + this.value['for'] = [null, undefined].includes(v) ? undefined : `${ v }s`; } } }, diff --git a/shell/edit/monitoring.coreos.com.prometheusrule/index.vue b/shell/edit/monitoring.coreos.com.prometheusrule/index.vue index a18e2a063ed..d5b3ca08a5b 100644 --- a/shell/edit/monitoring.coreos.com.prometheusrule/index.vue +++ b/shell/edit/monitoring.coreos.com.prometheusrule/index.vue @@ -113,7 +113,7 @@ export default { }, updateGroupInterval(group, interval) { - group['interval'] = [null, undefined].includes(interval ? undefined : `${ interval }s`); + group['interval'] = [null, undefined].includes(interval) ? undefined : `${ interval }s`; }, getGroupInterval(interval) {