|
|
@@ -663,7 +663,7 @@ describe('editor context menu', { scrollBehavior: false }, function () {
|
|
|
})
|
|
|
|
|
|
describe('when a user does not have edit permissions', function () {
|
|
|
- it('should only show Copy and Comment (hidden Cut, Paste, Delete, Suggest edits)', function () {
|
|
|
+ it('should only show Copy, Select all, Comment (hidden Cut, Paste, Delete, Suggest edits)', function () {
|
|
|
const scope = mockScope()
|
|
|
scope.permissions.write = false
|
|
|
scope.permissions.trackedWrite = false
|
|
|
@@ -701,6 +701,7 @@ describe('editor context menu', { scrollBehavior: false }, function () {
|
|
|
cy.findByRole('menu').within(() => {
|
|
|
cy.findByRole('menuitem', { name: /cut/i }).should('not.exist')
|
|
|
cy.findByRole('menuitem', { name: /copy/i }).should('be.enabled')
|
|
|
+ cy.findByRole('menuitem', { name: /select all/i }).should('be.enabled')
|
|
|
cy.findByRole('menuitem', { name: pasteLabelMatcher }).should(
|
|
|
'not.exist'
|
|
|
)
|