Skip to content

Commit

Permalink
fix: E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
ramedina86 committed Nov 29, 2024
1 parent 4482992 commit 83a7cc4
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 17 deletions.
4 changes: 3 additions & 1 deletion src/ui/src/builder/sidebar/BuilderSidebarToolkit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
@dragstart="handleDragStart($event, tool.type)"
>
<img
:alt="`(Icon for ${tool.name})`"
:src="`./../../../../components/${tool.type}.svg`"
@error="
!isImageFallback[tool.type]
Expand Down Expand Up @@ -164,7 +165,8 @@ watch(activeToolkit, () => {
}
.tool img {
width: 18px;
max-width: 18px;
max-height: 18px;
aspect-ratio: 1 / 1;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/button.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test.describe("button", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
test.setTimeout(5000);
});

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/tests/components.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function fullTest({type, locator}: ComponentTestData) {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test("create, drag and drop and remove", async ({ page }) => {
Expand Down Expand Up @@ -148,7 +148,7 @@ function basicTest({type, locator}: ComponentTestData) {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test("create and remove", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/drag.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test.describe("drag", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test("drag and drop component into itself", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/image.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test.describe("image", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test("configure", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/jsonviewer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.describe("JSON viewer", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
test.setTimeout(5000);
});

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/lowCode.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test.describe("low-code UI", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test("init_ui - ui initialization" , async ({ page }) => {
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/tests/reuse.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ test.describe("Reuse component", () => {

const removeComponent = async (page: Page, selector: string) => {
await page.locator(".CorePage").click();
collapseSettingsBar(page);
await page.locator(selector).click();
await page
.locator(
Expand Down Expand Up @@ -90,7 +89,7 @@ test.describe("Reuse component", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test.afterEach(async ({ page }) => {
Expand Down Expand Up @@ -123,6 +122,7 @@ test.describe("Reuse component", () => {
await expandSettingsBar(page);
await setReuseTarget(page, id);
await expect(page.locator(COMPONENT_LOCATOR)).toHaveClass(/invalid-context/);
collapseSettingsBar(page);
});
});

Expand All @@ -140,7 +140,7 @@ test.describe("Reuse component", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test.afterEach(async ({ page }) => {
Expand Down Expand Up @@ -206,7 +206,7 @@ test.describe("Reuse component", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test("create, drag and drop and remove", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/sidebar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.describe("sidebar", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
test.setTimeout(5000);
});

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/state.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test.describe("state", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test("increment number", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/stateAutocompletion.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test.describe("state autocompletion", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test.describe("text", () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/undoRedo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test.describe('undo and redo', () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

test("create, drag and drop, property change and remove", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/workflows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.describe("Workflows", () => {
});

test.beforeEach(async ({ page }) => {
await page.goto(url);
await page.goto(url, {waitUntil: "domcontentloaded"});
});

const inputData = [
Expand Down

0 comments on commit 83a7cc4

Please sign in to comment.