Skip to content

Commit

Permalink
SW-2967 resolve bugs of the v01.3.0 test (#1712)
Browse files Browse the repository at this point in the history
* fix guided tour design file selection
* fix failing analytics cypress test
  • Loading branch information
Josef-MrBeam authored Mar 15, 2023
1 parent 178f372 commit 337ef02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
13 changes: 4 additions & 9 deletions cypress/e2e/settings/analytics.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@ describe("Navbar icons", function () {
force: true,
});
});
it("More information about what data we use", function () {
cy.get('[id="settings_plugin_mrbeam_analytics_link"]').click();
cy.get(".mb-0 > .btn-link").click();
cy.get(".card-body").should("to.visible");
cy.wait(3000);
cy.get(".analytics-collapsible").click();
cy.get(".card-body").should("not.visible");
});

it("Privacy policy", function () {
cy.get('[id="settings_plugin_mrbeam_analytics_link"]').click();
cy.get('[style="color: darkgray;font-size: 0.9em"] > a')
cy.get(
'[data-test="mrbeam-ui-settings-better-together-privacy-policy-btn"]'
)
.invoke("attr", "href")
.then((myLink) => {
cy.request(myLink).then((resp) => {
Expand Down
3 changes: 3 additions & 0 deletions octoprint_mrbeam/static/js/app/view-models/tour.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ $(function () {
$(
'.file_list_entry[mrb_name="Schluesselanhaenger.svg"]'
)[0] ||
$(
'.file_list_entry[mrb_name="Schlusselanhanger.svg"]'
)[0] ||
$(
".gcode_files .entry.files_template_model_svg .file_list_entry "
).last()[0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>
</div>
<div class="span6">
<div class="privacy-policy"><a target="_blank" href="{{ url_for('plugin.mrbeam.static', filename='docs/MrBeamAnalytics-PrivacyPolicy_en.pdf') }}">{{ _('Privacy policy') }}</a></div>
<div class="privacy-policy"><a target="_blank" href="{{ url_for('plugin.mrbeam.static', filename='docs/MrBeamAnalytics-PrivacyPolicy_en.pdf') }}" data-test="mrbeam-ui-settings-better-together-privacy-policy-btn">{{ _('Privacy policy') }}</a></div>
</div>
</div>
</li>
Expand Down

0 comments on commit 337ef02

Please sign in to comment.