fix: starter-project was broken in main (#4842)
* fix broken test * ci: Enhance TypeScript test workflow with debug output and refined release condition --------- Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
parent
dd92d9c10c
commit
b9af310abf
2 changed files with 13 additions and 9 deletions
7
.github/workflows/typescript_test.yml
vendored
7
.github/workflows/typescript_test.yml
vendored
|
|
@ -74,6 +74,7 @@ jobs:
|
||||||
id: set-matrix
|
id: set-matrix
|
||||||
run: |
|
run: |
|
||||||
# Start with input suites if provided, otherwise empty array
|
# Start with input suites if provided, otherwise empty array
|
||||||
|
echo "Changes filter output: ${{ steps.filter.outputs }}"
|
||||||
SUITES='${{ inputs.suites }}'
|
SUITES='${{ inputs.suites }}'
|
||||||
echo "Initial suites: $SUITES"
|
echo "Initial suites: $SUITES"
|
||||||
TEST_GREP=""
|
TEST_GREP=""
|
||||||
|
|
@ -81,15 +82,15 @@ jobs:
|
||||||
RELEASE="${{ inputs.release || 'false' }}"
|
RELEASE="${{ inputs.release || 'false' }}"
|
||||||
echo "Release build: $RELEASE"
|
echo "Release build: $RELEASE"
|
||||||
|
|
||||||
# if release OR steps.filter.outputs.frontend-tests is true
|
# Only set to release if it's explicitly a release build
|
||||||
if [[ "$RELEASE" == "true" || "${{ steps.filter.outputs.frontend-tests }}" == "true" ]]; then
|
if [[ "$RELEASE" == "true" ]]; then
|
||||||
SUITES='["release"]'
|
SUITES='["release"]'
|
||||||
echo "Release build detected - setting suites to: $SUITES"
|
echo "Release build detected - setting suites to: $SUITES"
|
||||||
# No grep pattern for release - run all tests
|
# No grep pattern for release - run all tests
|
||||||
TEST_GREP=""
|
TEST_GREP=""
|
||||||
else
|
else
|
||||||
# If input suites were not provided, determine based on changes
|
# If input suites were not provided, determine based on changes
|
||||||
if [[ "$SUITES" == "[]" ]]; then
|
if [[ "$SUITES" == "[]" ]]; then
|
||||||
echo "No input suites provided - determining from changes"
|
echo "No input suites provided - determining from changes"
|
||||||
TAGS=()
|
TAGS=()
|
||||||
# Add suites and tags based on changed files
|
# Add suites and tags based on changed files
|
||||||
|
|
|
||||||
|
|
@ -66,12 +66,6 @@ test(
|
||||||
modalCount = 0;
|
modalCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (modalCount === 0) {
|
|
||||||
await page.getByText("New Flow", { exact: true }).click();
|
|
||||||
await page.waitForTimeout(3000);
|
|
||||||
modalCount = await page.getByTestId("modal-title")?.count();
|
|
||||||
}
|
|
||||||
|
|
||||||
while (modalCount === 0) {
|
while (modalCount === 0) {
|
||||||
await page.getByText("New Flow", { exact: true }).click();
|
await page.getByText("New Flow", { exact: true }).click();
|
||||||
await page.waitForSelector('[data-testid="modal-title"]', {
|
await page.waitForSelector('[data-testid="modal-title"]', {
|
||||||
|
|
@ -80,6 +74,15 @@ test(
|
||||||
modalCount = await page.getByTestId("modal-title")?.count();
|
modalCount = await page.getByTestId("modal-title")?.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await page.getByTestId("side_nav_options_all-templates").click();
|
||||||
|
await page
|
||||||
|
.getByRole("heading", { name: "Vector Store RAG" })
|
||||||
|
.first()
|
||||||
|
.click();
|
||||||
|
await page.waitForSelector('[data-testid="fit_view"]', {
|
||||||
|
timeout: 100000,
|
||||||
|
});
|
||||||
|
|
||||||
await page.getByTestId("fit_view").click();
|
await page.getByTestId("fit_view").click();
|
||||||
await page.getByTestId("zoom_out").click();
|
await page.getByTestId("zoom_out").click();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue