Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Tests #2066

Merged
merged 12 commits into from
Oct 24, 2024
3 changes: 1 addition & 2 deletions .github/workflows/testdriver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ jobs:
steps:
- name: Debug - Print masked secret
run: |
if [ -n "${{secrets.TESTDRIVER_API_KEY}}" ];
if [ -n "${{secrets.TESTDRIVER_API_KEY}}" ];
then
echo "yes the api is there"
else
echo "nope"
fi
- uses: testdriverai/action@main
with:
version: v4.0.44
key: ${{secrets.TESTDRIVER_API_KEY}}
prerun: |
npm install
Expand Down
9 changes: 4 additions & 5 deletions src/main/java/stirling/software/SPDF/EE/EEAppConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,19 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;

import lombok.extern.slf4j.Slf4j;
import stirling.software.SPDF.model.ApplicationProperties;

@Configuration
@Lazy
@Slf4j
public class EEAppConfig {

private static final Logger logger = LoggerFactory.getLogger(EEAppConfig.class);

@Autowired ApplicationProperties applicationProperties;

@Autowired private LicenseKeyChecker licenseKeyChecker;

@Bean(name = "runningEE")
public boolean runningEnterpriseEdition() {
return licenseKeyChecker.getEnterpriseEnabledResult();
return licenseKeyChecker.getEnterpriseEnabledResult();
}
}
}
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ <h6 class="menu-title" th:text="#{navbar.sections.advance}"></h6>
</div>
</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">
<span class="go-pro-badge" th:text="#{enterpriseEdition.button}"></span>
</a>
Expand Down
21 changes: 12 additions & 9 deletions testdriver/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ steps:
action: click
- prompt: click on view PDF
commands:
- command: wait
timeout: 5000
- command: assert
expect: a pdf is open
- prompt: go back to the previous page
Expand Down Expand Up @@ -127,39 +129,40 @@ steps:
- command: wait
timeout: 2000
- prompt: >-
click on Tools button in the header section and hover over merge button
and check if the background for the button is changed, similarly hover
over all the rest of the buttons and check for the background of the
button to change
click on Tools button in the header section and Check if the background of
the merge button is highlighted when hovered over, similarly hover over a
few other buttons and check for the background of the button is highlighted
when hovered over
commands:
- command: focus-application
name: Google Chrome
- command: hover-text
text: Tools
description: Tools button in the header section
action: click
- command: assert
expect: the Tools dropdown is open
- command: hover-text
text: Merge
description: Merge button
action: hover
- command: assert
expect: the background of the Merge button is changed
expect: the background of the Merge button is highlighted
- command: hover-text
text: PDF to Image
description: PDF to Image button
action: hover
- 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
text: PDF to CSV
description: PDF to CSV button
action: hover
- 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
text: Sign
description: Sign button
action: hover
- command: assert
expect: the background of the Sign button is changed

expect: the background of the Sign button is highlighted
Loading