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

DEV: Add system tests #36

Merged
merged 1 commit into from
Oct 24, 2023
Merged

DEV: Add system tests #36

merged 1 commit into from
Oct 24, 2023

Conversation

tgxworld
Copy link
Contributor

Why does this commit do?

This commit improves the test coverage for the theme by adding system tests which covers the basic functionality of the theme.

Why does this commit do?

This commit improves the test coverage for the theme by adding system tests which covers the basic functionality of the theme.
const dataName = dasherize(text);
const childLinks = this.linkArray.filter(
(link) => link.parent === parentFor
);

return {
text,
title,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caught a bug here while working on the system test.

@CvX CvX changed the title DEV: Add systemt tests DEV: Add system tests Oct 20, 2023
end
end

it "should not display the footer to anon users when `Show_footer_on_login_required_page` is false" do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's already a legacy thing but it's so weird the theme setting is capitalized 😬

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup this is something we will fix soon when we have the ability to migrate theme settings.

let!(:theme) { upload_theme_component }

it "should display the footer" do
theme.update_setting(:Link_sections, "Section 1, Section 1 title|Section 2, Section 2 title")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh maybe the capitalization is a theme setting thing generally? Seems strange to me, but not related to this PR

@tgxworld
Copy link
Contributor Author

@martin-brennan Thank you for the review 👍

@tgxworld tgxworld merged commit cc69e05 into main Oct 24, 2023
3 checks passed
@tgxworld tgxworld deleted the add_system_tests branch October 24, 2023 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants