-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ui) - fix playwright e2e tests (#713)
* Fix file upload success indicator hiding * Fix disable checkbox for file uploading * Improve sorting logic and fix disable send (rate limiting logic) * Create unique pdfs for file-management tests * Refactor to handle LF API not allowing file read stream yet (for file uploads) * Re-enable skipped tests that were flaky * Add cleanup step at end of tests (reduces flakiness when test files were trying to clean up when other files were still running) * Refactor to 1 worker and only chromium - running more than 1 worker can cause flakiness due to test files being run at the same time in different browsers (e.x. navigation history is incorrect). Additionally, Leapfrog API is slow when attaching files to assistants, resulting in flaky tests. We can attempt in increase number of browser and workers in the pipeline when the API is faster.
- Loading branch information
1 parent
7d65636
commit 28c5941
Showing
35 changed files
with
1,003 additions
and
578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ OPENAI_API_KEY= | |
# SUPABASE AUTH (when running Supabase Locally) | ||
SUPABASE_AUTH_KEYCLOAK_CLIENT_ID=uds-supabase | ||
SUPABASE_AUTH_KEYCLOAK_SECRET=<secret> | ||
SUPABASE_AUTH_EXTERNAL_KEYCLOAK_URL=https://keycloak.admin.uds.dev/realms/uds | ||
SUPABASE_AUTH_EXTERNAL_KEYCLOAK_URL=https://sso.uds.dev/realms/uds | ||
|
||
# PLAYWRIGHT | ||
USERNAME=[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<script lang="ts"> | ||
import { Attachment } from 'carbon-icons-svelte'; | ||
import { Button } from 'carbon-components-svelte'; | ||
export let disabled = false; | ||
export let accept = ['.pdf', '.txt', '.text']; | ||
export let multiple = false; | ||
export let files: File[] = []; | ||
export let handleAttach: () => void; | ||
</script> | ||
|
||
<Button | ||
icon={Attachment} | ||
kind="ghost" | ||
size="small" | ||
iconDescription="Attach File" | ||
on:click={handleAttach} | ||
/> | ||
|
||
<input | ||
{disabled} | ||
type="file" | ||
tabindex="-1" | ||
accept={accept.join(',')} | ||
{multiple} | ||
name="files" | ||
class:bx--visually-hidden={true} | ||
{...$$restProps} | ||
on:change|stopPropagation={({ target }) => { | ||
if (target) { | ||
files = [...target.files]; | ||
} | ||
}} | ||
on:click | ||
on:click={({ target }) => { | ||
if (target) { | ||
target.value = null; | ||
} | ||
}} | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.