Make "Read only" casing consistent (#19236)

GitOrigin-RevId: 9769fccd7507a8fa58786492acc1875ac68062bd
This commit is contained in:
roo hutton 2024-07-02 11:09:08 +01:00 committed by Copybot
parent 33b208d4d5
commit 8b41d26750
3 changed files with 5 additions and 5 deletions

View file

@ -53,7 +53,7 @@ describe('Project Sharing', function () {
function shareProjectByEmailAndAcceptInvite(
email: string,
level: 'Read Only' | 'Can edit'
level: 'Read only' | 'Can edit'
) {
login('user@example.com')
cy.visit('/project')
@ -177,7 +177,7 @@ describe('Project Sharing', function () {
ensureUserExists({ email })
beforeWithReRunOnTestRetry(function () {
shareProjectByEmailAndAcceptInvite(email, 'Read Only')
shareProjectByEmailAndAcceptInvite(email, 'Read only')
})
it('should grant the collaborator read access', () => {

View file

@ -1512,7 +1512,7 @@
"read_lines_from_path": "Read lines from __path__",
"read_more": "Read more",
"read_more_about_free_compile_timeouts_servers": "Read more about changes to free compile timeouts and servers",
"read_only": "Read Only",
"read_only": "Read only",
"read_only_token": "Read-Only Token",
"read_write_token": "Read-Write Token",
"ready_to_join_x": "Youre ready to join __inviterName__",

View file

@ -457,7 +457,7 @@ describe('<ShareProjectModal/>', function () {
expect(screen.queryAllByText('member-viewer@example.com')).to.have.length(1)
const select = screen.getByDisplayValue('Read Only')
const select = screen.getByDisplayValue('Read only')
await fireEvent.change(select, { target: { value: 'readAndWrite' } })
const changeButton = screen.getByRole('button', { name: 'Change' })
@ -534,7 +534,7 @@ describe('<ShareProjectModal/>', function () {
expect(screen.queryAllByText('member-viewer@example.com')).to.have.length(1)
const select = screen.getByDisplayValue('Read Only')
const select = screen.getByDisplayValue('Read only')
fireEvent.change(select, { target: { value: 'owner' } })
const changeButton = screen.getByRole('button', { name: 'Change' })