Changed members only copy for radio button label to invite only. (#15795)

This commit is contained in:
Nick Taylor 2021-12-16 08:31:31 -05:00 committed by GitHub
parent 70e233953c
commit 2063d73459
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 9 deletions

View file

@ -47,7 +47,7 @@
</div>
<div>
<%= f.radio_button :invite_only_mode, true, class: "crayons-radio", role: "radio" %>
<%= label_tag "creator_settings_form_invite_only_mode_true", "Members Only" %>
<%= label_tag "creator_settings_form_invite_only_mode_true", "Invite Only" %>
</div>
</div>
</fieldset>

View file

@ -41,18 +41,32 @@ describe('Creator Settings Page', () => {
cy.findByText(/^Brand color/).invoke('attr', 'value', '#ff0000');
// should contain a 'Who can join this community?' radio selector field and allow selection upon click
cy.findByRole('group', { name: /^Who can join this community/i }).should(
'be.visible',
);
cy.findAllByRole('radio', { name: /everyone/i }).check();
cy.findAllByRole('radio').should('be.checked');
cy.findByRole('group', { name: /^Who can join this community/i })
.as('joinCommunity')
.should('be.visible');
cy.get('@joinCommunity').within(() => {
cy.findByRole('radio', { name: /everyone/i })
.check()
.should('be.checked');
cy.findByRole('radio', { name: /invite only/i }).should('not.be.checked');
});
// should contain a 'Who can view content in this community?' radio selector field and allow selection upon click
cy.findByRole('group', {
name: /^Who can view content in this community/i,
}).should('be.visible');
cy.findAllByRole('radio', { name: /members only/i }).check();
cy.findAllByRole('radio').should('be.checked');
})
.as('viewCommunity')
.should('be.visible');
cy.get('@viewCommunity').within(() => {
cy.findByRole('radio', { name: /members only/i })
.check()
.should('be.checked');
cy.findByRole('radio', { name: /everyone/i }).should('not.be.checked');
});
// should contain a 'I agree to uphold our Code of Conduct' checkbox field and allow selection upon click
cy.findByRole('group', {