mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
test: Refactor page objects and reuse locators (#19191)
This commit is contained in:
@@ -41,7 +41,7 @@ test.describe('Proxy server @capability:proxy', () => {
|
||||
// Execute workflow - this should now proxy through mockserver
|
||||
await n8n.workflowComposer.executeWorkflowAndWaitForNotification('Successful');
|
||||
await n8n.canvas.openNode('HTTP Request');
|
||||
await expect(n8n.ndv.getOutputTbodyCell(0, 0)).toContainText('Hello from ProxyServer!');
|
||||
await expect(n8n.ndv.outputPanel.getTbodyCell(0, 0)).toContainText('Hello from ProxyServer!');
|
||||
|
||||
// Verify the request was handled by mockserver
|
||||
expect(
|
||||
@@ -70,6 +70,6 @@ test.describe('Proxy server @capability:proxy', () => {
|
||||
await n8n.canvas.openNode('HTTP Request');
|
||||
await n8n.ndv.setParameterInput('url', 'https://jsonplaceholder.typicode.com/todos/1');
|
||||
await n8n.ndv.execute();
|
||||
await expect(n8n.ndv.getOutputTbodyCell(0, 0)).toContainText('1');
|
||||
await expect(n8n.ndv.outputPanel.getTbodyCell(0, 0)).toContainText('1');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user