BigW Consortium Gitlab

Commit cf7b1562 by Regis

reduced amount of failures in feature test - vue paints - .includes does not work

parent 5ba83d96
......@@ -22,8 +22,10 @@
'store',
],
created() {
const url = window.location.href;
if (url.includes('?')) this.pageNum = url.split('?')[1];
// ** `.includes` does not work in PhantomJS
// const url = window.location.toString();
// if (url.includes('?')) this.pageNum = url.split('?')[1];
// now fetch page appropriate data
this.store.fetchDataLoop.call(this, Vue, this.pageNum);
},
......
require 'spec_helper'
require 'rails_helper'
describe "Pipelines" do
describe "Pipelines", feature: true, js: true do
include GitlabRoutingHelper
include WaitForAjax
let(:project) { create(:empty_project) }
let(:user) { create(:user) }
......@@ -20,7 +22,11 @@ describe "Pipelines" do
before { visit namespace_project_pipelines_path(project.namespace, project, scope: scope) }
it { expect(page).to have_content(pipeline.short_sha) }
it do
wait_for_ajax
expect(page).to have_content(pipeline.short_sha)
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment