You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our gulp/grunt build we can reference the page title in our index list. This means we can match our page names with corresponding components or page templates in the functional spec. This makes life a lot easier in terms of FE dev and QA testing. There is no ambiguity to which component or page template someone is talking about.
In the pageList.cshtml we are referencing the list of pages by the @filename value.
In a perfect world this would use @ViewBag.Title (or something referenced from the page file directly) instead.
The text was updated successfully, but these errors were encountered:
Best way we've thought of doing this is to have a variable set in the file in the ViewBag, so for example ViewBag.Title = "blarg"; in the file. This would then be picked up by a modified gulp task based on the one located here: https://github.com/buildingblocks/bb-prototype-website/blob/master/gulp/page-list.js#L46 and instead of reading it out json-wise it would look for that variable (probably through a regex or something similar).
In our gulp/grunt build we can reference the page title in our index list. This means we can match our page names with corresponding components or page templates in the functional spec. This makes life a lot easier in terms of FE dev and QA testing. There is no ambiguity to which component or page template someone is talking about.
In the pageList.cshtml we are referencing the list of pages by the @filename value.
In a perfect world this would use @ViewBag.Title (or something referenced from the page file directly) instead.
The text was updated successfully, but these errors were encountered: