File tree Expand file tree Collapse file tree 14 files changed +29
-30
lines changed
end2end/screens/deep_traceability/view_document/view_document_go_from_requirement_card_to_requirement_in_document_view_another_document
02_three_top_level_requirements
03_three_documents_with_assets
04_composable_document_with_assets
05_generate_bundle_document Expand file tree Collapse file tree 14 files changed +29
-30
lines changed Original file line number Diff line number Diff line change 44
44
run : |
45
45
pip install -r requirements.check.txt
46
46
47
+ - name : " Windows specific: Install Tidy via Chocolatey, and add it to $PATH"
48
+ shell : pwsh
49
+ run : |
50
+ choco install html-tidy -y
51
+ $tidyPath = (Get-ChildItem "C:\ProgramData\chocolatey\lib\html-tidy" -Recurse -Filter tidy.exe | Select-Object -First 1).DirectoryName
52
+ echo "$tidyPath" | Out-File -Append -Encoding ascii $env:GITHUB_PATH
53
+
47
54
- name : Run tests (Powershell)
48
55
run : |
49
56
invoke test
Original file line number Diff line number Diff line change 44
44
run : |
45
45
pip install -r requirements.check.txt
46
46
47
+ - name : " Windows specific: Install Tidy via Chocolatey, and add it to $PATH"
48
+ shell : pwsh
49
+ run : |
50
+ choco install html-tidy -y
51
+ $tidyPath = (Get-ChildItem "C:\ProgramData\chocolatey\lib\html-tidy" -Recurse -Filter tidy.exe | Select-Object -First 1).DirectoryName
52
+ echo "$tidyPath" | Out-File -Append -Encoding ascii $env:GITHUB_PATH
53
+
47
54
- name : Run Lint tasks
48
55
run : |
49
56
invoke lint
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ dependencies = [
88
88
" WebSockets" ,
89
89
90
90
# HTML2PDF dependencies
91
- " html2print >= 0.0.15 " ,
91
+ " html2print >= 0.0.16 " ,
92
92
]
93
93
# @sdoc[/SDOC-SRS-89]
94
94
Original file line number Diff line number Diff line change @@ -422,6 +422,9 @@ def test_integration(
422
422
# the exists() check works.
423
423
assert os .path .exists (chromedriver_path ), chromedriver_path
424
424
chromedriver_param = f"--param CHROMEDRIVER={ os .path .join (chromedriver_path , 'chromedriver' )} "
425
+ if os .name == "nt" :
426
+ # On Windows, its chromdriver.exe
427
+ chromedriver_param = chromedriver_param + ".exe"
425
428
test_folder = f"{ cwd } /tests/integration/features/html2pdf"
426
429
427
430
itest_command = f"""
Original file line number Diff line number Diff line change 7
7
Screen_ProjectIndex ,
8
8
)
9
9
from tests .end2end .server import SDocTestServer
10
- from tests .end2end .test_helpers import available_systems
11
10
12
11
13
- # FIXME: This test fails on Windows with
14
- # Element {(//sdoc-node[@data-testid='node-requirement'])[2]//*[@data-testid='requirement-find-in-document']} was not present after 10 seconds!
15
- # We don't have a Windows machine to investigate this in detail.
16
- @available_systems (["macos" , "linux" ])
17
12
class Test (E2ECase ):
18
13
def test (self ):
19
14
test_setup = End2EndTestSetup (path_to_test_file = __file__ )
@@ -47,6 +42,6 @@ def test(self):
47
42
requirement .do_go_to_this_requirement_in_document_view ()
48
43
)
49
44
screen_document_ .assert_on_screen_document ()
50
- screen_document_ .assert_target_by_anchor ("1- REQ-002" )
45
+ screen_document_ .assert_target_by_anchor ("REQ-002" )
51
46
52
47
assert test_setup .compare_sandbox_and_expected_output ()
Original file line number Diff line number Diff line change 1
1
REQUIRES: TEST_HTML2PDF
2
2
3
- # FIXME: Getting timeouts on Windows CI all the time. Needs to be checked or tested by users.
4
- REQUIRES: PLATFORM_IS_NOT_WINDOWS
5
-
6
3
RUN: %strictdoc export %S --formats=html2pdf --output-dir Output | filecheck %s --dump-input=fail
7
4
CHECK: html2print: JS logs from the print session
8
5
Original file line number Diff line number Diff line change 1
1
REQUIRES: TEST_HTML2PDF
2
2
3
- # FIXME: Getting timeouts on Windows CI all the time. Needs to be checked or tested by users.
4
- REQUIRES: PLATFORM_IS_NOT_WINDOWS
5
-
6
3
RUN: %strictdoc export %S --formats=html2pdf --output-dir Output | filecheck %s --dump-input=fail
7
4
CHECK: html2print: JS logs from the print session
8
5
Original file line number Diff line number Diff line change 1
1
REQUIRES: TEST_HTML2PDF
2
2
3
- # FIXME: Getting timeouts on Windows CI all the time. Needs to be checked or tested by users.
4
- REQUIRES: PLATFORM_IS_NOT_WINDOWS
5
-
6
3
RUN: %strictdoc export %S --formats=html2pdf --output-dir Output | filecheck %s --dump-input=fail
7
4
CHECK: html2print: JS logs from the print session
8
5
Original file line number Diff line number Diff line change 1
1
REQUIRES: TEST_HTML2PDF
2
2
3
- # FIXME: Getting timeouts on Windows CI all the time. Needs to be checked or tested by users.
4
- REQUIRES: PLATFORM_IS_NOT_WINDOWS
5
-
6
3
RUN: %strictdoc export %S --formats=html2pdf --included-documents --output-dir Output | filecheck %s --dump-input=fail
7
4
CHECK: html2print: JS logs from the print session
8
5
Original file line number Diff line number Diff line change 1
1
REQUIRES: TEST_HTML2PDF
2
2
3
- # FIXME: Getting timeouts on Windows CI all the time. Needs to be checked or tested by users.
4
- REQUIRES: PLATFORM_IS_NOT_WINDOWS
5
-
6
3
RUN: %strictdoc export %S --formats=html2pdf --generate-bundle-document --output-dir Output | filecheck %s --dump-input=fail
7
4
CHECK: html2print: JS logs from the print session
8
5
You can’t perform that action at this time.
0 commit comments