Update share modal dropdown with a description for reviewers in a free project (#24571)

* Update collaborator select dropdown with a description for reviewers in free project

* Update share-project-modal test

* Fix saas-e2e tests

* fix server pro tests

* fix cypress multiple inputs selection

* fix testid case

GitOrigin-RevId: 5369828334596d80988aba168385f0a51eea998f
This commit is contained in:
Domagoj Kriskovic
2025-04-03 08:04:59 +00:00
committed by Copybot
parent 830d0daa38
commit f36c87b301
12 changed files with 103 additions and 51 deletions
+10 -4
View File
@@ -100,7 +100,7 @@ export function openProjectViaInviteNotification(projectName: string) {
function shareProjectByEmail(
projectName: string,
email: string,
level: 'Can view' | 'Can edit'
level: 'Viewer' | 'Editor'
) {
openProjectByName(projectName)
cy.findByText('Share').click()
@@ -108,7 +108,13 @@ function shareProjectByEmail(
cy.findByLabelText('Add people', { selector: 'input' }).type(`${email},`)
cy.findByLabelText('Add people', { selector: 'input' })
.parents('form')
.within(() => cy.findByText('Can edit').parent().select(level))
.within(() => {
cy.findByTestId('add-collaborator-select')
.click()
.then(() => {
cy.findByText(level).click()
})
})
cy.findByText('Invite').click({ force: true })
cy.findByText('Invite not yet accepted.')
})
@@ -117,7 +123,7 @@ function shareProjectByEmail(
export function shareProjectByEmailAndAcceptInviteViaDash(
projectName: string,
email: string,
level: 'Can view' | 'Can edit'
level: 'Viewer' | 'Editor'
) {
shareProjectByEmail(projectName, email, level)
@@ -128,7 +134,7 @@ export function shareProjectByEmailAndAcceptInviteViaDash(
export function shareProjectByEmailAndAcceptInviteViaEmail(
projectName: string,
email: string,
level: 'Can view' | 'Can edit'
level: 'Viewer' | 'Editor'
) {
shareProjectByEmail(projectName, email, level)