mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Make "Read only" casing consistent (#19236)
GitOrigin-RevId: 9769fccd7507a8fa58786492acc1875ac68062bd
This commit is contained in:
parent
33b208d4d5
commit
8b41d26750
3 changed files with 5 additions and 5 deletions
|
@ -53,7 +53,7 @@ describe('Project Sharing', function () {
|
||||||
|
|
||||||
function shareProjectByEmailAndAcceptInvite(
|
function shareProjectByEmailAndAcceptInvite(
|
||||||
email: string,
|
email: string,
|
||||||
level: 'Read Only' | 'Can edit'
|
level: 'Read only' | 'Can edit'
|
||||||
) {
|
) {
|
||||||
login('user@example.com')
|
login('user@example.com')
|
||||||
cy.visit('/project')
|
cy.visit('/project')
|
||||||
|
@ -177,7 +177,7 @@ describe('Project Sharing', function () {
|
||||||
ensureUserExists({ email })
|
ensureUserExists({ email })
|
||||||
|
|
||||||
beforeWithReRunOnTestRetry(function () {
|
beforeWithReRunOnTestRetry(function () {
|
||||||
shareProjectByEmailAndAcceptInvite(email, 'Read Only')
|
shareProjectByEmailAndAcceptInvite(email, 'Read only')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should grant the collaborator read access', () => {
|
it('should grant the collaborator read access', () => {
|
||||||
|
|
|
@ -1512,7 +1512,7 @@
|
||||||
"read_lines_from_path": "Read lines from __path__",
|
"read_lines_from_path": "Read lines from __path__",
|
||||||
"read_more": "Read more",
|
"read_more": "Read more",
|
||||||
"read_more_about_free_compile_timeouts_servers": "Read more about changes to free compile timeouts and servers",
|
"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_only_token": "Read-Only Token",
|
||||||
"read_write_token": "Read-Write Token",
|
"read_write_token": "Read-Write Token",
|
||||||
"ready_to_join_x": "You’re ready to join __inviterName__",
|
"ready_to_join_x": "You’re ready to join __inviterName__",
|
||||||
|
|
|
@ -457,7 +457,7 @@ describe('<ShareProjectModal/>', function () {
|
||||||
|
|
||||||
expect(screen.queryAllByText('member-viewer@example.com')).to.have.length(1)
|
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' } })
|
await fireEvent.change(select, { target: { value: 'readAndWrite' } })
|
||||||
|
|
||||||
const changeButton = screen.getByRole('button', { name: 'Change' })
|
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)
|
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' } })
|
fireEvent.change(select, { target: { value: 'owner' } })
|
||||||
|
|
||||||
const changeButton = screen.getByRole('button', { name: 'Change' })
|
const changeButton = screen.getByRole('button', { name: 'Change' })
|
||||||
|
|
Loading…
Reference in a new issue