-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vscode): Fix new typescript version issues and import libraries (#…
…4636) * Fix parent property in classes * Fix classes in designer and copy function * Fix properties in class
- Loading branch information
1 parent
ff20812
commit 79d8e20
Showing
17 changed files
with
319 additions
and
300 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
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
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
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 |
---|---|---|
@@ -1,26 +1,30 @@ | ||
import { expect, test } from '@playwright/test'; | ||
|
||
test('Sanity Check', { | ||
tag: '@mock', | ||
}, async ({ page }) => { | ||
await page.goto('/'); | ||
test( | ||
'Sanity Check', | ||
{ | ||
tag: '@mock', | ||
}, | ||
async ({ page }) => { | ||
await page.goto('/'); | ||
|
||
await page.getByText('Select an option').click(); | ||
await page.getByRole('option', { name: 'Simple Big Workflow' }).click(); | ||
await page.getByRole('button', { name: 'Toolbox' }).click(); | ||
await page.getByTestId('card-Increment variable').getByRole('button').click(); | ||
await page.getByLabel('Value').getByRole('paragraph').click(); | ||
await page.getByLabel('Value').press('Escape'); | ||
await page.getByRole('tab', { name: 'Code View' }).click(); | ||
await page.getByRole('tab', { name: 'About' }).click(); | ||
await page.getByRole('tab', { name: 'Settings' }).click(); | ||
await page.getByRole('tab', { name: 'Parameters' }).click(); | ||
await page.getByRole('tab', { name: 'Settings' }).click(); | ||
await page.getByRole('button', { name: 'Expanded Run After, Click to Collapse' }).click(); | ||
await page.getByRole('button', { name: 'Collapsed Run After, Click to Expand' }).click(); | ||
await page.getByRole('button', { name: 'Expanded Tracking, Click to Collapse' }).click(); | ||
await page.getByRole('button', { name: 'Collapsed Tracking, Click to Expand' }).click(); | ||
await page.getByRole('button', { name: 'Expand Initialize variable' }).click(); | ||
await page.getByRole('button', { name: 'Collapse Initialize variable' }).click(); | ||
expect(true).toBeTruthy(); | ||
}); | ||
await page.getByText('Select an option').click(); | ||
await page.getByRole('option', { name: 'Simple Big Workflow' }).click(); | ||
await page.getByRole('button', { name: 'Toolbox' }).click(); | ||
await page.getByTestId('card-Increment variable').getByRole('button').click(); | ||
await page.getByLabel('Value').getByRole('paragraph').click(); | ||
await page.getByLabel('Value').press('Escape'); | ||
await page.getByRole('tab', { name: 'Code View' }).click(); | ||
await page.getByRole('tab', { name: 'About' }).click(); | ||
await page.getByRole('tab', { name: 'Settings' }).click(); | ||
await page.getByRole('tab', { name: 'Parameters' }).click(); | ||
await page.getByRole('tab', { name: 'Settings' }).click(); | ||
await page.getByRole('button', { name: 'Expanded Run After, Click to Collapse' }).click(); | ||
await page.getByRole('button', { name: 'Collapsed Run After, Click to Expand' }).click(); | ||
await page.getByRole('button', { name: 'Expanded Tracking, Click to Collapse' }).click(); | ||
await page.getByRole('button', { name: 'Collapsed Tracking, Click to Expand' }).click(); | ||
await page.getByRole('button', { name: 'Expand Initialize variable' }).click(); | ||
await page.getByRole('button', { name: 'Collapse Initialize variable' }).click(); | ||
expect(true).toBeTruthy(); | ||
} | ||
); |
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 |
---|---|---|
@@ -1,22 +1,28 @@ | ||
import { test } from '@playwright/test'; | ||
|
||
test('Should be able to drag and drop operations', { | ||
tag: '@mock', | ||
}, async ({ page }) => { | ||
await page.goto('/'); | ||
test( | ||
'Should be able to drag and drop operations', | ||
{ | ||
tag: '@mock', | ||
}, | ||
async ({ page }) => { | ||
await page.goto('/'); | ||
|
||
await page.locator('text=Select an option').click(); | ||
await page.locator('button[role="option"]:has-text("Simple Big Workflow")').click(); | ||
await page.locator('div[role="button"]:has-text("🧰")').click(); | ||
await page.locator('text=Select an option').click(); | ||
await page.locator('button[role="option"]:has-text("Simple Big Workflow")').click(); | ||
await page.locator('div[role="button"]:has-text("🧰")').click(); | ||
|
||
const originElement = await page.waitForSelector('div[role="button"]:has-text("Increment variable55")'); | ||
const destinationElement = await page.waitForSelector('g:nth-child(51) > .edgebutton-foreignobject > div > .msla-drop-zone-viewmanager2'); | ||
const originElement = await page.waitForSelector('div[role="button"]:has-text("Increment variable55")'); | ||
const destinationElement = await page.waitForSelector( | ||
'g:nth-child(51) > .edgebutton-foreignobject > div > .msla-drop-zone-viewmanager2' | ||
); | ||
|
||
await originElement.hover(); | ||
await page.mouse.down(); | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const box = (await destinationElement.boundingBox())!; | ||
await page.mouse.move(box.x + box.width / 2, box.y + box.height / 2); | ||
await destinationElement.hover(); | ||
await page.mouse.up(); | ||
}); | ||
await originElement.hover(); | ||
await page.mouse.down(); | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const box = (await destinationElement.boundingBox())!; | ||
await page.mouse.move(box.x + box.width / 2, box.y + box.height / 2); | ||
await destinationElement.hover(); | ||
await page.mouse.up(); | ||
} | ||
); |
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 |
---|---|---|
@@ -1,36 +1,37 @@ | ||
import { expect, test } from '@playwright/test'; | ||
|
||
test.describe( | ||
'Sanity Check', | ||
{ | ||
tag: '@real', | ||
}, () => { | ||
'Sanity Check', | ||
{ | ||
tag: '@real', | ||
}, | ||
() => { | ||
test('Sanity Check', async ({ page, request, browserName }) => { | ||
await page.goto('/'); | ||
await page.getByPlaceholder('Select an App').click({ timeout: 20000 }); | ||
await page.getByPlaceholder('Select an App').fill(`wapp-lauxtest${browserName}`, { timeout: 20000 }); | ||
await page.getByPlaceholder('Select an App').press('Enter', { timeout: 20000 }); | ||
await page.getByLabel('Workflow').locator('span').filter({ hasText: '' }).click({ timeout: 20000 }); | ||
await page.getByRole('option', { name: 'testWorkflow1' }).click({ timeout: 20000 }); | ||
await page.getByRole('button', { name: 'Toolbox' }).click({ timeout: 20000 }); | ||
await page.getByTestId('card-When a HTTP request is received').getByLabel('When a HTTP request is').click({ timeout: 20000 }); | ||
await page.getByRole('combobox', { name: 'Method' }).click({ timeout: 20000 }); | ||
await page.getByRole('option', { name: 'GET' }).click({ timeout: 20000 }); | ||
await page.getByLabel('Insert a new step after When').click({ timeout: 20000 }); | ||
await page.getByRole('menuitem', { name: 'Add an action' }).click({ timeout: 20000 }); | ||
await page.getByPlaceholder('Search').fill('response', { timeout: 20000 }); | ||
await page.getByLabel('Response This is an incoming').click({ timeout: 20000 }); | ||
await page.getByLabel('Body').getByRole('paragraph').click({ timeout: 20000 }); | ||
await page.getByLabel('Body').fill('Test Body', { timeout: 20000 }); | ||
await page.getByRole('menuitem', { name: 'Save Save' }).click({ timeout: 20000 }); | ||
|
||
test('Sanity Check', async ({ page, request, browserName }) => { | ||
await page.goto('/'); | ||
await page.getByPlaceholder('Select an App').click({ timeout: 20000 }); | ||
await page.getByPlaceholder('Select an App').fill(`wapp-lauxtest${browserName}`, { timeout: 20000 }); | ||
await page.getByPlaceholder('Select an App').press('Enter', { timeout: 20000 }); | ||
await page.getByLabel('Workflow').locator('span').filter({ hasText: '' }).click({ timeout: 20000 }); | ||
await page.getByRole('option', { name: 'testWorkflow1' }).click({ timeout: 20000 }); | ||
await page.getByRole('button', { name: 'Toolbox' }).click({ timeout: 20000 }); | ||
await page.getByTestId('card-When a HTTP request is received').getByLabel('When a HTTP request is').click({ timeout: 20000 }); | ||
await page.getByRole('combobox', { name: 'Method' }).click({ timeout: 20000 }); | ||
await page.getByRole('option', { name: 'GET' }).click({ timeout: 20000 }); | ||
await page.getByLabel('Insert a new step after When').click({ timeout: 20000 }); | ||
await page.getByRole('menuitem', { name: 'Add an action' }).click({ timeout: 20000 }); | ||
await page.getByPlaceholder('Search').fill('response', { timeout: 20000 }); | ||
await page.getByLabel('Response This is an incoming').click({ timeout: 20000 }); | ||
await page.getByLabel('Body').getByRole('paragraph').click({ timeout: 20000 }); | ||
await page.getByLabel('Body').fill('Test Body', { timeout: 20000 }); | ||
await page.getByRole('menuitem', { name: 'Save Save' }).click({ timeout: 20000 }); | ||
|
||
await page.waitForResponse((resp) => resp.url().includes('/deployWorkflowArtifacts') && resp.status() === 200); | ||
await page.waitForTimeout(6000); | ||
await page.getByTestId('card-When a HTTP request is received').getByLabel('When a HTTP request is').click({ timeout: 20000 }); | ||
const value = await page.getByRole('textbox', { name: 'URL will be generated after' }).inputValue(); | ||
const LAResult = await request.get(value); | ||
expect(LAResult.status()).toBe(200); | ||
expect(await LAResult.text()).toBe('Test Body'); | ||
}) | ||
}); | ||
await page.waitForResponse((resp) => resp.url().includes('/deployWorkflowArtifacts') && resp.status() === 200); | ||
await page.waitForTimeout(6000); | ||
await page.getByTestId('card-When a HTTP request is received').getByLabel('When a HTTP request is').click({ timeout: 20000 }); | ||
const value = await page.getByRole('textbox', { name: 'URL will be generated after' }).inputValue(); | ||
const LAResult = await request.get(value); | ||
expect(LAResult.status()).toBe(200); | ||
expect(await LAResult.text()).toBe('Test Body'); | ||
}); | ||
} | ||
); |
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.