diff --git a/cypress/e2e/item/settings/itemSettings.cy.js b/cypress/e2e/item/settings/itemSettings.cy.js index 3aa8c9a06..5245d37f3 100644 --- a/cypress/e2e/item/settings/itemSettings.cy.js +++ b/cypress/e2e/item/settings/itemSettings.cy.js @@ -9,6 +9,7 @@ import { SETTINGS_LINK_SHOW_BUTTON_ID, SETTINGS_LINK_SHOW_IFRAME_ID, SETTINGS_PINNED_TOGGLE_ID, + SETTINGS_SAVE_ACTIONS_TOGGLE_ID, } from '../../../../src/config/selectors'; import { ITEM_WITH_CHATBOX_MESSAGES, @@ -206,6 +207,19 @@ describe('Item Settings', () => { }); }); + describe('Analytics Settings', () => { + it('Layout', () => { + const itemId = ITEMS_SETTINGS.items[2].id; + cy.visit(buildItemPath(itemId)); + cy.get(`.${ITEM_SETTINGS_BUTTON_CLASS}`).click(); + + cy.get(`#${SETTINGS_SAVE_ACTIONS_TOGGLE_ID}`) + .should('be.exist') + .should('be.disabled') + .should('not.be.checked'); + }); + }); + describe('Link Settings', () => { it('Does not show link settings for folder item', () => { const itemId = ITEMS_SETTINGS.items[0].id; diff --git a/cypress/e2e/memberProfile.cy.js b/cypress/e2e/memberProfile.cy.js index 75163c37b..2a27817fc 100644 --- a/cypress/e2e/memberProfile.cy.js +++ b/cypress/e2e/memberProfile.cy.js @@ -11,6 +11,7 @@ import { MEMBER_PROFILE_MEMBER_ID_COPY_BUTTON_ID, MEMBER_PROFILE_MEMBER_ID_ID, MEMBER_PROFILE_MEMBER_NAME_ID, + MEMBER_PROFILE_SAVE_ACTIONS_TOGGLE_ID, USER_CONFIRM_PASSWORD_INPUT_ID, USER_CURRENT_PASSWORD_INPUT_ID, USER_NEW_PASSWORD_INPUT_ID, @@ -47,6 +48,10 @@ describe('Member Profile', () => { 'contain', emailFrequency[extra.emailFreq], ); + cy.get(`#${MEMBER_PROFILE_SAVE_ACTIONS_TOGGLE_ID}`) + .should('be.exist') + .should('be.disabled') + .should('not.be.checked'); cy.get(`#${USER_CURRENT_PASSWORD_INPUT_ID}`).should('be.visible'); cy.get(`#${USER_NEW_PASSWORD_INPUT_ID}`).should('be.visible'); cy.get(`#${USER_CONFIRM_PASSWORD_INPUT_ID}`).should('be.visible'); diff --git a/cypress/fixtures/items.js b/cypress/fixtures/items.js index 153680c6f..e462ec0e7 100644 --- a/cypress/fixtures/items.js +++ b/cypress/fixtures/items.js @@ -674,6 +674,7 @@ export const ITEMS_SETTINGS = { settings: { isPinned: false, showChatbox: false, + enableSaveActions: false, }, memberships: [ { diff --git a/cypress/fixtures/members.js b/cypress/fixtures/members.js index 4f5608ba6..b0bd23c88 100644 --- a/cypress/fixtures/members.js +++ b/cypress/fixtures/members.js @@ -11,6 +11,7 @@ export const MEMBERS = { extra: { lang: 'fr', emailFreq: 'never', + enableSaveActions: false, }, }, BOB: {