mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-26 13:18:34 +07:00
test: fresh workflow validation with complete fixes
- Add new test documentation to validate fixed translation workflow - Updated docs.json navigation structure - Tests both automatic and manual workflow triggers
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
"en/documentation/pages/getting-started/quick-start",
|
||||
"en/documentation/pages/getting-started/key-concepts",
|
||||
"en/documentation/pages/getting-started/faq",
|
||||
"en/documentation/pages/getting-started/fresh-test",
|
||||
"en/documentation/pages/getting-started/test-internal"
|
||||
]
|
||||
},
|
||||
|
||||
75
en/documentation/pages/getting-started/fresh-test.mdx
Normal file
75
en/documentation/pages/getting-started/fresh-test.mdx
Normal file
@@ -0,0 +1,75 @@
|
||||
---
|
||||
title: "Fresh Workflow Test"
|
||||
sidebarTitle: "Fresh Test"
|
||||
description: "Testing the complete fixed translation workflow"
|
||||
---
|
||||
|
||||
# Fresh Workflow Test
|
||||
|
||||
This is a fresh test document to validate the completely fixed automatic translation workflow.
|
||||
|
||||
## What's Been Fixed
|
||||
|
||||
1. **Job Condition**: Now handles both `workflow_run` and `workflow_dispatch` events
|
||||
2. **Source Check**: Properly bypasses checks for manual `workflow_dispatch` on revamp branch
|
||||
3. **Workflow Triggering**: Should now work for both automatic and manual scenarios
|
||||
|
||||
## Test Content
|
||||
|
||||
### Basic Workflow Features
|
||||
|
||||
The translation system should handle:
|
||||
- Standard markdown content
|
||||
- Code blocks with syntax highlighting
|
||||
- MDX components and notes
|
||||
- Tables and lists
|
||||
- Links and references
|
||||
|
||||
### Sample Code
|
||||
|
||||
```javascript
|
||||
// Example: Dify API integration
|
||||
const difyClient = {
|
||||
baseURL: 'https://api.dify.ai/v1',
|
||||
apiKey: 'your-api-key',
|
||||
|
||||
async callWorkflow(workflowId, inputs) {
|
||||
const response = await fetch(`${this.baseURL}/workflows/${workflowId}/run`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': `Bearer ${this.apiKey}`,
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
inputs,
|
||||
response_mode: 'blocking'
|
||||
})
|
||||
});
|
||||
|
||||
return response.json();
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
### Features Table
|
||||
|
||||
| Component | English | Chinese | Japanese | Status |
|
||||
|-----------|---------|---------|----------|--------|
|
||||
| Documentation | ✅ | 🔄 Auto | 🔄 Auto | Testing |
|
||||
| Navigation | ✅ | 🔄 Auto | 🔄 Auto | Testing |
|
||||
| Workflow | ✅ | N/A | N/A | Fixed |
|
||||
|
||||
### Important Note
|
||||
|
||||
<Note>
|
||||
This fresh test validates that all workflow fixes are working correctly. The system should automatically translate this content and create a corresponding translation PR.
|
||||
</Note>
|
||||
|
||||
## Expected Results
|
||||
|
||||
1. **Analyze workflow** detects English-only changes
|
||||
2. **Execute workflow** runs without skipping steps
|
||||
3. **Translation PR** is created automatically
|
||||
4. **Manual trigger** also works for debugging
|
||||
|
||||
This test confirms the complete end-to-end functionality.
|
||||
Reference in New Issue
Block a user