fix quizzes/quizzes_stats_spec.rb in selenium
refs CNVS-25916 the "app" directory as root is only present for docker users. we can just remove it from the matchers for jsx loaders and then these work on jenkins too. TEST PLAN: 1) spec/selenium/quizzes/quizzes_stats_spec should pass in selenium webpack build Change-Id: I51f915452de5f4a3f98407d6e3b90a4b18a8671e Reviewed-on: https://gerrit.instructure.com/70292 Reviewed-by: Simon Williams <simon@instructure.com> Product-Review: Ethan Vizitei <evizitei@instructure.com> QA-Review: Ethan Vizitei <evizitei@instructure.com> Tested-by: Ethan Vizitei <evizitei@instructure.com>
This commit is contained in:
parent
775e5622ac
commit
4f797398d9
|
@ -67,7 +67,7 @@ module.exports = {
|
|||
{
|
||||
test: /\.jsx$/,
|
||||
include: [path.resolve(__dirname, "../app/jsx")],
|
||||
exclude: [/(node_modules|bower)/, /public\/javascripts\/vendor/, /public\/javascripts\/translations/, /app\/client_apps\/canvas_quizzes\/apps\//],
|
||||
exclude: [/(node_modules|bower)/, /public\/javascripts\/vendor/, /public\/javascripts\/translations/, /client_apps\/canvas_quizzes\/apps\//],
|
||||
loaders: [
|
||||
'babel?cacheDirectory=tmp',
|
||||
'jsxYankPragma'
|
||||
|
@ -75,7 +75,7 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
test: /\.jsx$/,
|
||||
include: [/app\/client_apps\/canvas_quizzes\/apps\//],
|
||||
include: [/client_apps\/canvas_quizzes\/apps\//],
|
||||
exclude: [/(node_modules|bower)/, /public\/javascripts\/vendor/, /public\/javascripts\/translations/, path.resolve(__dirname, "../app/jsx")],
|
||||
loaders: ["jsx"]
|
||||
},
|
||||
|
@ -151,7 +151,7 @@ module.exports = {
|
|||
new webpack.IgnorePlugin(/(CHANGELOG|LICENSE|README)$/),
|
||||
new webpack.IgnorePlugin(/package.json/),
|
||||
new WebpackOnBuildPlugin(function(stats){
|
||||
child_process.spawnSync("gulp", ["rev"]);
|
||||
child_process.spawn("gulp", ["rev"]);
|
||||
}),
|
||||
new webpack.PrefetchPlugin("./app/coffeescripts/calendar/ContextSelector.coffee"),
|
||||
new webpack.PrefetchPlugin("./app/coffeescripts/calendar/TimeBlockRow.coffee"),
|
||||
|
|
Loading…
Reference in New Issue