mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
k
This commit is contained in:
parent
824844bf84
commit
c85157f734
@ -44,9 +44,9 @@ USER_FIELDS = "nextPageToken, users(primaryEmail)"
|
||||
MISSING_SCOPES_ERROR_STR = "client not authorized for any of the scopes requested"
|
||||
|
||||
# Documentation and error messages
|
||||
SCOPE_DOC_URL = "https://docs.danswer.dev/connectors/google_drive/overview"
|
||||
SCOPE_DOC_URL = "https://docs.onyx.app/connectors/google_drive/overview"
|
||||
ONYX_SCOPE_INSTRUCTIONS = (
|
||||
"You have upgraded Danswer without updating the Google Auth scopes. "
|
||||
"You have upgraded Onyx without updating the Google Auth scopes. "
|
||||
f"Please refer to the documentation to learn how to update the scopes: {SCOPE_DOC_URL}"
|
||||
)
|
||||
|
||||
|
@ -54,7 +54,7 @@ def parse_credentials(env_str: str) -> dict:
|
||||
@pytest.fixture
|
||||
def google_gmail_oauth_connector_factory() -> Callable[..., GmailConnector]:
|
||||
def _connector_factory(
|
||||
primary_admin_email: str = "admin@danswer-test.com",
|
||||
primary_admin_email: str = "admin@onyx-test.com",
|
||||
) -> GmailConnector:
|
||||
print("Creating GmailConnector with OAuth credentials")
|
||||
connector = GmailConnector()
|
||||
@ -76,7 +76,7 @@ def google_gmail_oauth_connector_factory() -> Callable[..., GmailConnector]:
|
||||
@pytest.fixture
|
||||
def google_gmail_service_acct_connector_factory() -> Callable[..., GmailConnector]:
|
||||
def _connector_factory(
|
||||
primary_admin_email: str = "admin@danswer-test.com",
|
||||
primary_admin_email: str = "admin@onyx-test.com",
|
||||
) -> GmailConnector:
|
||||
print("Creating GmailConnector with service account credentials")
|
||||
connector = GmailConnector()
|
||||
|
@ -14,7 +14,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: celery-beat
|
||||
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.4
|
||||
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.20
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
[
|
||||
|
@ -14,7 +14,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: celery-worker-heavy
|
||||
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.4
|
||||
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.20
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
[
|
||||
|
@ -14,7 +14,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: celery-worker-indexing
|
||||
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.4
|
||||
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.20
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
[
|
||||
|
@ -14,7 +14,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: celery-worker-light
|
||||
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.4
|
||||
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.20
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
[
|
||||
|
@ -14,7 +14,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: celery-worker-primary
|
||||
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.4
|
||||
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.20
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
[
|
||||
|
@ -1,33 +0,0 @@
|
||||
import { test, expect } from "@playwright/test";
|
||||
test(
|
||||
`test - admin chat`,
|
||||
{
|
||||
tag: "@admin",
|
||||
},
|
||||
async ({ page }) => {
|
||||
await page.goto("http://localhost:3000/assistants/new");
|
||||
await expect(page).toHaveURL("http://localhost:3000/assistants/new");
|
||||
await page.screenshot({
|
||||
path: `screenshots/create_assistant_page.png`,
|
||||
});
|
||||
await page.getByTestId("name").click();
|
||||
await page.getByTestId("name").fill("Test");
|
||||
await page.getByTestId("description").click();
|
||||
await page.getByTestId("description").fill("Test");
|
||||
await page.getByTestId("system_prompt").click();
|
||||
await page.getByTestId("system_prompt").fill("Test");
|
||||
await page
|
||||
.getByRole("button", { name: "Logo GPT 4o", exact: true })
|
||||
.click();
|
||||
await page.getByRole("button", { name: "Create!" }).click();
|
||||
// Wait for the page URL to change to the chat page
|
||||
await page.waitForURL(/^http:\/\/localhost:3000\/chat(\?.*)?$/);
|
||||
await expect(page.url()).toContain("http://localhost:3000/chat");
|
||||
await page.screenshot({
|
||||
path: `screenshots/chat_page_after_create.png`,
|
||||
});
|
||||
await page.getByPlaceholder("Send a message or try using").fill("Hello");
|
||||
await page.keyboard.press("Enter");
|
||||
await page.waitForSelector("#onyx-ai-message", { state: "visible" });
|
||||
}
|
||||
);
|
Loading…
x
Reference in New Issue
Block a user