-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
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, |
There was a problem hiding this comment.
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.
end | ||
end | ||
|
||
it "should not display the footer to anon users when `Show_footer_on_login_required_page` is false" do |
There was a problem hiding this comment.
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 😬
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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
@martin-brennan Thank you for the review 👍 |
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.