Skip to content

Commit

Permalink
chore(e2e): rename variable for non-ggs enabled repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj committed Oct 3, 2023
1 parent 9f5ffce commit d7c9eef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const E2E_EMAIL_TEST_SITE = {
name: "e2e email test site",
repo: "e2e-email-test-repo",
}
export const E2E_NOTGGS_TEST_REPO = "e2e-notggs-test-repo"
export const E2E_NOT_GGS_TEST_REPO = "e2e-notggs-test-repo"
const E2E_TEST_SECRET = config.get("cypress.e2eTestSecret")

export const E2E_TEST_GH_TOKEN = config.get("cypress.e2eTestGithubToken")
Expand Down Expand Up @@ -191,7 +191,7 @@ export default class AuthenticationMiddlewareService {
(userType === E2E_USERS.Email.Admin ||
userType === E2E_USERS.Email.Collaborator)
const isGithubE2eAccess =
(repo === E2E_TEST_REPO || repo === E2E_NOTGGS_TEST_REPO) &&
(repo === E2E_TEST_REPO || repo === E2E_NOT_GGS_TEST_REPO) &&
userType === "Github user"

if (!isGithubE2eAccess && !isEmailE2eAccess)
Expand Down

0 comments on commit d7c9eef

Please sign in to comment.