From 987f82dbf1206a0b13bd25cd9350c79d9efea6d2 Mon Sep 17 00:00:00 2001 From: M Fahru Date: Fri, 8 Jul 2022 07:13:54 -0400 Subject: [PATCH] change "admin" to "project-owner" in test file description and comments GitOrigin-RevId: f99231359ebd20d14aec8ca08d4cb9780abfb915 --- .../components/share-project-modal.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/web/test/frontend/features/share-project-modal/components/share-project-modal.test.js b/services/web/test/frontend/features/share-project-modal/components/share-project-modal.test.js index 14fc599835..c0a42ca189 100644 --- a/services/web/test/frontend/features/share-project-modal/components/share-project-modal.test.js +++ b/services/web/test/frontend/features/share-project-modal/components/share-project-modal.test.js @@ -175,7 +175,7 @@ describe('', function () { await screen.findByRole('button', { name: 'Make Private' }) }) - it('hides actions from non-admins', async function () { + it('hides actions from non-project-owners', async function () { const invites = [ { _id: 'invited-author', @@ -184,7 +184,7 @@ describe('', function () { }, ] - // render as admin: actions should be present + // render as project owner: actions should be present render( ', function () { await screen.findByRole('button', { name: 'Turn off link sharing' }) await screen.findByRole('button', { name: 'Resend' }) - // render as non-admin (non-owner), link sharing on: actions should be missing and message should be present + // render as non-project-owner, link sharing on: actions should be missing and message should be present render( ', function () { .null expect(screen.queryByRole('button', { name: 'Resend' })).to.be.null - // render as non-admin (non-owner), link sharing off: actions should be missing and message should be present + // render as non-project-owner, link sharing off: actions should be missing and message should be present render(