Skip to content

Commit

Permalink
fix maintenance test and move working area before settings so backlas…
Browse files Browse the repository at this point in the history
…h/percission calibration will not be enabled
  • Loading branch information
Josef-MrBeam committed Oct 19, 2023
1 parent 81706dd commit 6e1761d
Show file tree
Hide file tree
Showing 20 changed files with 10 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions cypress/e2e/settings/maintenance.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ describe("Maintenance", function () {
expect(resp.status).to.eq(200);
});
});
cy.get('[data-test="maintenance-links-buy-now-heavy-duty-pre-filter"]')
.invoke("attr", "href")
.then((myLink) => {
cy.request(myLink).then((resp) => {
expect(resp.status).to.eq(200);
});
});
});
// status code no exist
it("Air Filter: Main-filter", function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>
<div class="maintenance-links" data-bind="visible: shopifyLink('prefilter', 0)">
<a data-bind="attr: {href: shopifyLink('prefilter', 0)}"
target="_blank" id="prefilter_shop_link" data-test="maintenance-links-buy-now-pre-filter" class="maintenance-link-shop">
target="_blank" id="prefilter_shop_link" data-test="maintenance-links-buy-new-pre-filter-af3" class="maintenance-link-shop">
<i class="icon-shopping-cart"></i>
{{ _('Buy now') }}
</a>
Expand Down Expand Up @@ -45,7 +45,7 @@
</div>
<div class="maintenance-links" data-bind="visible: shopifyLink('carbonfilter', 0)">
<a data-bind="attr: {href: shopifyLink('carbonfilter', 0)}"
target="_blank" id="carbon_filter_shop_link" class="maintenance-link-shop">
target="_blank" id="carbon_filter_shop_link" data-test="maintenance-links-buy-now-main-filter-af3" class="maintenance-link-shop">
<i class="icon-shopping-cart"></i>
{{ _('Buy now') }}
</a>
Expand Down Expand Up @@ -101,7 +101,7 @@
</small>
<div class="maintenance-links" data-bind="visible: shopifyLink('prefilter_heavy_duty', 0)">
<a data-bind="attr: {href: shopifyLink('prefilter_heavy_duty', 0)}"
target="_blank" id="prefilter_shop_link" data-test="maintenance-links-buy-now-pre-filter" class="maintenance-link-shop">
target="_blank" id="prefilter_shop_link" data-test="maintenance-links-buy-now-heavy-duty-pre-filter" class="maintenance-link-shop">
<i class="icon-shopping-cart"></i>
{{ _('Buy now') }}
</a>
Expand Down

0 comments on commit 6e1761d

Please sign in to comment.