mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-31 00:08:08 +01:00
Update the Tests (#2066)
* use transform instead of change * disable workflows * updates expect commands as well * try "highlighted" * update versions * update workflow files * Remove pro badge if enabled * add some wait time --------- Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Co-authored-by: a <a>
This commit is contained in:
parent
48d4871224
commit
7939fbbf2b
1
.github/workflows/testdriver.yml
vendored
1
.github/workflows/testdriver.yml
vendored
@ -21,7 +21,6 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
- uses: testdriverai/action@main
|
- uses: testdriverai/action@main
|
||||||
with:
|
with:
|
||||||
version: v4.0.44
|
|
||||||
key: ${{secrets.TESTDRIVER_API_KEY}}
|
key: ${{secrets.TESTDRIVER_API_KEY}}
|
||||||
prerun: |
|
prerun: |
|
||||||
npm install
|
npm install
|
||||||
|
@ -7,16 +7,15 @@ import org.springframework.context.annotation.Bean;
|
|||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.Lazy;
|
import org.springframework.context.annotation.Lazy;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import stirling.software.SPDF.model.ApplicationProperties;
|
import stirling.software.SPDF.model.ApplicationProperties;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@Lazy
|
@Lazy
|
||||||
|
@Slf4j
|
||||||
public class EEAppConfig {
|
public class EEAppConfig {
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(EEAppConfig.class);
|
|
||||||
|
|
||||||
@Autowired ApplicationProperties applicationProperties;
|
@Autowired ApplicationProperties applicationProperties;
|
||||||
|
|
||||||
@Autowired private LicenseKeyChecker licenseKeyChecker;
|
@Autowired private LicenseKeyChecker licenseKeyChecker;
|
||||||
|
|
||||||
@Bean(name = "runningEE")
|
@Bean(name = "runningEE")
|
||||||
|
@ -360,7 +360,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="nav-item">
|
<li class="nav-item" th:if="${!@runningEE}">
|
||||||
<a href="https://stirlingpdf.com/pricing" class="nav-link go-pro-link" target="_blank" rel="noopener noreferrer">
|
<a href="https://stirlingpdf.com/pricing" class="nav-link go-pro-link" target="_blank" rel="noopener noreferrer">
|
||||||
<span class="go-pro-badge" th:text="#{enterpriseEdition.button}"></span>
|
<span class="go-pro-badge" th:text="#{enterpriseEdition.button}"></span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -14,6 +14,8 @@ steps:
|
|||||||
action: click
|
action: click
|
||||||
- prompt: click on view PDF
|
- prompt: click on view PDF
|
||||||
commands:
|
commands:
|
||||||
|
- command: wait
|
||||||
|
timeout: 5000
|
||||||
- command: assert
|
- command: assert
|
||||||
expect: a pdf is open
|
expect: a pdf is open
|
||||||
- prompt: go back to the previous page
|
- prompt: go back to the previous page
|
||||||
@ -127,10 +129,10 @@ steps:
|
|||||||
- command: wait
|
- command: wait
|
||||||
timeout: 2000
|
timeout: 2000
|
||||||
- prompt: >-
|
- prompt: >-
|
||||||
click on Tools button in the header section and hover over merge button
|
click on Tools button in the header section and Check if the background of
|
||||||
and check if the background for the button is changed, similarly hover
|
the merge button is highlighted when hovered over, similarly hover over a
|
||||||
over all the rest of the buttons and check for the background of the
|
few other buttons and check for the background of the button is highlighted
|
||||||
button to change
|
when hovered over
|
||||||
commands:
|
commands:
|
||||||
- command: focus-application
|
- command: focus-application
|
||||||
name: Google Chrome
|
name: Google Chrome
|
||||||
@ -138,28 +140,29 @@ steps:
|
|||||||
text: Tools
|
text: Tools
|
||||||
description: Tools button in the header section
|
description: Tools button in the header section
|
||||||
action: click
|
action: click
|
||||||
|
- command: assert
|
||||||
|
expect: the Tools dropdown is open
|
||||||
- command: hover-text
|
- command: hover-text
|
||||||
text: Merge
|
text: Merge
|
||||||
description: Merge button
|
description: Merge button
|
||||||
action: hover
|
action: hover
|
||||||
- command: assert
|
- command: assert
|
||||||
expect: the background of the Merge button is changed
|
expect: the background of the Merge button is highlighted
|
||||||
- command: hover-text
|
- command: hover-text
|
||||||
text: PDF to Image
|
text: PDF to Image
|
||||||
description: PDF to Image button
|
description: PDF to Image button
|
||||||
action: hover
|
action: hover
|
||||||
- command: assert
|
- command: assert
|
||||||
expect: the background of the PDF to Image button is changed
|
expect: the background of the PDF to Image button is highlighted
|
||||||
- command: hover-text
|
- command: hover-text
|
||||||
text: PDF to CSV
|
text: PDF to CSV
|
||||||
description: PDF to CSV button
|
description: PDF to CSV button
|
||||||
action: hover
|
action: hover
|
||||||
- command: assert
|
- command: assert
|
||||||
expect: the background of the PDF to CSV button is changed
|
expect: the background of the PDF to CSV button is highlighted
|
||||||
- command: hover-text
|
- command: hover-text
|
||||||
text: Sign
|
text: Sign
|
||||||
description: Sign button
|
description: Sign button
|
||||||
action: hover
|
action: hover
|
||||||
- command: assert
|
- command: assert
|
||||||
expect: the background of the Sign button is changed
|
expect: the background of the Sign button is highlighted
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user