Skip to content
Snippets Groups Projects
Commit 28ce39a3 authored by GitLab Bot's avatar GitLab Bot
Browse files

Add latest changes from gitlab-org/gitlab@master

parent afe057a8
No related branches found
No related tags found
No related merge requests found
Showing
with 79 additions and 87 deletions
Loading
Loading
@@ -1497,37 +1497,37 @@ msgstr ""
msgid "An error occurred while validating username"
msgstr ""
 
msgid "An error occurred whilst committing your changes."
msgid "An error occurred while committing your changes."
msgstr ""
 
msgid "An error occurred whilst fetching the job trace."
msgid "An error occurred while fetching the job trace."
msgstr ""
 
msgid "An error occurred whilst fetching the latest pipeline."
msgid "An error occurred while fetching the latest pipeline."
msgstr ""
 
msgid "An error occurred whilst getting files for - %{branchId}"
msgid "An error occurred while getting files for - %{branchId}"
msgstr ""
 
msgid "An error occurred whilst loading all the files."
msgid "An error occurred while loading all the files."
msgstr ""
 
msgid "An error occurred whilst loading the file content."
msgid "An error occurred while loading the file content."
msgstr ""
 
msgid "An error occurred whilst loading the file."
msgid "An error occurred while loading the file."
msgstr ""
 
msgid "An error occurred whilst loading the merge request changes."
msgid "An error occurred while loading the merge request changes."
msgstr ""
 
msgid "An error occurred whilst loading the merge request version data."
msgid "An error occurred while loading the merge request version data."
msgstr ""
 
msgid "An error occurred whilst loading the merge request."
msgid "An error occurred while loading the merge request."
msgstr ""
 
msgid "An error occurred whilst loading the pipelines jobs."
msgid "An error occurred while loading the pipelines jobs."
msgstr ""
 
msgid "An error occurred. Please try again."
Loading
Loading
@@ -19414,4 +19414,3 @@ msgstr[0] ""
 
msgid "yaml invalid"
msgstr ""
Loading
Loading
@@ -1497,37 +1497,37 @@ msgstr "更新评论时发生错误"
msgid "An error occurred while validating username"
msgstr "验证用户名时发生错误"
 
msgid "An error occurred whilst committing your changes."
msgid "An error occurred while committing your changes."
msgstr "提交更改时发生错误。"
 
msgid "An error occurred whilst fetching the job trace."
msgid "An error occurred while fetching the job trace."
msgstr "获取作业日志时发生错误。"
 
msgid "An error occurred whilst fetching the latest pipeline."
msgid "An error occurred while fetching the latest pipeline."
msgstr "获取最新流水线时发生错误。"
 
msgid "An error occurred whilst getting files for - %{branchId}"
msgid "An error occurred while getting files for - %{branchId}"
msgstr "获取文件 - %{branchId} 时出错"
 
msgid "An error occurred whilst loading all the files."
msgid "An error occurred while loading all the files."
msgstr "加载所有文件时发生错误。"
 
msgid "An error occurred whilst loading the file content."
msgid "An error occurred while loading the file content."
msgstr "加载文件内容时发生错误。"
 
msgid "An error occurred whilst loading the file."
msgid "An error occurred while loading the file."
msgstr "加载文件时发生错误。"
 
msgid "An error occurred whilst loading the merge request changes."
msgid "An error occurred while loading the merge request changes."
msgstr "加载合并请求的变更内容时发生错误。"
 
msgid "An error occurred whilst loading the merge request version data."
msgid "An error occurred while loading the merge request version data."
msgstr "加载合并请求的版本数据时发生错误。"
 
msgid "An error occurred whilst loading the merge request."
msgid "An error occurred while loading the merge request."
msgstr "加载合并请求时发生错误。"
 
msgid "An error occurred whilst loading the pipelines jobs."
msgid "An error occurred while loading the pipelines jobs."
msgstr "加载流水线作业时发生错误。"
 
msgid "An error occurred. Please try again."
Loading
Loading
@@ -19414,4 +19414,3 @@ msgstr[0] "在%d分钟内"
 
msgid "yaml invalid"
msgstr "yaml无效"
Loading
Loading
@@ -1497,37 +1497,37 @@ msgstr ""
msgid "An error occurred while validating username"
msgstr ""
 
msgid "An error occurred whilst committing your changes."
msgid "An error occurred while committing your changes."
msgstr ""
 
msgid "An error occurred whilst fetching the job trace."
msgid "An error occurred while fetching the job trace."
msgstr ""
 
msgid "An error occurred whilst fetching the latest pipeline."
msgid "An error occurred while fetching the latest pipeline."
msgstr ""
 
msgid "An error occurred whilst getting files for - %{branchId}"
msgid "An error occurred while getting files for - %{branchId}"
msgstr ""
 
msgid "An error occurred whilst loading all the files."
msgid "An error occurred while loading all the files."
msgstr ""
 
msgid "An error occurred whilst loading the file content."
msgid "An error occurred while loading the file content."
msgstr ""
 
msgid "An error occurred whilst loading the file."
msgid "An error occurred while loading the file."
msgstr ""
 
msgid "An error occurred whilst loading the merge request changes."
msgid "An error occurred while loading the merge request changes."
msgstr ""
 
msgid "An error occurred whilst loading the merge request version data."
msgid "An error occurred while loading the merge request version data."
msgstr ""
 
msgid "An error occurred whilst loading the merge request."
msgid "An error occurred while loading the merge request."
msgstr ""
 
msgid "An error occurred whilst loading the pipelines jobs."
msgid "An error occurred while loading the pipelines jobs."
msgstr ""
 
msgid "An error occurred. Please try again."
Loading
Loading
@@ -19414,4 +19414,3 @@ msgstr[0] ""
 
msgid "yaml invalid"
msgstr ""
Loading
Loading
@@ -1497,37 +1497,37 @@ msgstr "更新留言時發生錯誤"
msgid "An error occurred while validating username"
msgstr "驗證使用者名稱時發生錯誤"
 
msgid "An error occurred whilst committing your changes."
msgid "An error occurred while committing your changes."
msgstr ""
 
msgid "An error occurred whilst fetching the job trace."
msgid "An error occurred while fetching the job trace."
msgstr ""
 
msgid "An error occurred whilst fetching the latest pipeline."
msgid "An error occurred while fetching the latest pipeline."
msgstr ""
 
msgid "An error occurred whilst getting files for - %{branchId}"
msgid "An error occurred while getting files for - %{branchId}"
msgstr ""
 
msgid "An error occurred whilst loading all the files."
msgid "An error occurred while loading all the files."
msgstr ""
 
msgid "An error occurred whilst loading the file content."
msgid "An error occurred while loading the file content."
msgstr ""
 
msgid "An error occurred whilst loading the file."
msgid "An error occurred while loading the file."
msgstr ""
 
msgid "An error occurred whilst loading the merge request changes."
msgid "An error occurred while loading the merge request changes."
msgstr ""
 
msgid "An error occurred whilst loading the merge request version data."
msgid "An error occurred while loading the merge request version data."
msgstr ""
 
msgid "An error occurred whilst loading the merge request."
msgid "An error occurred while loading the merge request."
msgstr ""
 
msgid "An error occurred whilst loading the pipelines jobs."
msgid "An error occurred while loading the pipelines jobs."
msgstr ""
 
msgid "An error occurred. Please try again."
Loading
Loading
@@ -19414,4 +19414,3 @@ msgstr[0] "在 %d 分鐘內 "
 
msgid "yaml invalid"
msgstr ""
Loading
Loading
@@ -30,9 +30,9 @@ describe 'Environment > Metrics' do
click_link('See metrics')
 
expect(page).to have_metrics_path(environment)
expect(page).to have_css('div.js-environments-dropdown')
expect(page).to have_css('[data-qa-selector="environments_dropdown"]')
 
within('div.js-environments-dropdown') do
within('[data-qa-selector="environments_dropdown"]') do
# Click on the dropdown
click_on(environment.name)
 
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
 
require 'spec_helper'
 
describe 'Projects > Files > User uses soft wrap whilst editing file', :js do
describe 'Projects > Files > User uses soft wrap while editing file', :js do
before do
project = create(:project, :repository)
user = project.owner
Loading
Loading
Loading
Loading
@@ -389,7 +389,7 @@ describe('IDE store file actions', () => {
)
.then(() => {
expect(dispatch).toHaveBeenCalledWith('setErrorMessage', {
text: 'An error occurred whilst loading the file.',
text: 'An error occurred while loading the file.',
action: expect.any(Function),
actionText: 'Please try again',
actionPayload: {
Loading
Loading
@@ -500,7 +500,7 @@ describe('IDE store file actions', () => {
)
.catch(() => {
expect(dispatch).toHaveBeenCalledWith('setErrorMessage', {
text: 'An error occurred whilst loading the file content.',
text: 'An error occurred while loading the file content.',
action: expect.any(Function),
actionText: 'Please try again',
actionPayload: {
Loading
Loading
Loading
Loading
@@ -78,7 +78,7 @@ describe('IDE pipelines actions', () => {
{
type: 'setErrorMessage',
payload: {
text: 'An error occurred whilst fetching the latest pipeline.',
text: 'An error occurred while fetching the latest pipeline.',
action: expect.any(Function),
actionText: 'Please try again',
actionPayload: null,
Loading
Loading
@@ -207,7 +207,7 @@ describe('IDE pipelines actions', () => {
{
type: 'setErrorMessage',
payload: {
text: 'An error occurred whilst loading the pipelines jobs.',
text: 'An error occurred while loading the pipelines jobs.',
action: expect.anything(),
actionText: 'Please try again',
actionPayload: { id: 1 },
Loading
Loading
@@ -341,7 +341,7 @@ describe('IDE pipelines actions', () => {
{
type: 'setErrorMessage',
payload: {
text: 'An error occurred whilst fetching the job trace.',
text: 'An error occurred while fetching the job trace.',
action: expect.any(Function),
actionText: 'Please try again',
actionPayload: null,
Loading
Loading
Loading
Loading
@@ -58,7 +58,7 @@ describe('ImportProjectsTable', () => {
vm.$destroy();
});
 
it('renders a loading icon whilst repos are loading', () =>
it('renders a loading icon while repos are loading', () =>
vm.$nextTick().then(() => {
expect(vm.$el.querySelector('.js-loading-button-icon')).not.toBeNull();
}));
Loading
Loading
Loading
Loading
@@ -52,6 +52,9 @@ describe('Dashboard', () => {
});
};
 
const findEnvironmentsDropdown = () => wrapper.find({ ref: 'monitorEnvironmentsDropdown' });
const findAllEnvironmentsDropdownItems = () => findEnvironmentsDropdown().findAll(GlDropdownItem);
beforeEach(() => {
store = createStore();
mock = new MockAdapter(axios);
Loading
Loading
@@ -71,7 +74,7 @@ describe('Dashboard', () => {
});
 
it('shows the environment selector', () => {
expect(wrapper.vm.$el.querySelector('.js-environments-dropdown')).toBeTruthy();
expect(findEnvironmentsDropdown().exists()).toBe(true);
});
});
 
Loading
Loading
@@ -83,7 +86,7 @@ describe('Dashboard', () => {
});
 
it('shows the environment selector dropdown', () => {
expect(wrapper.vm.$el.querySelector('.js-environments-dropdown')).toBeTruthy();
expect(findEnvironmentsDropdown().exists()).toBe(true);
});
});
 
Loading
Loading
@@ -113,7 +116,7 @@ describe('Dashboard', () => {
.$nextTick()
.then(() => {
expect(wrapper.vm.showEmptyState).toEqual(false);
expect(wrapper.vm.$el.querySelector('.prometheus-panel')).toEqual(null);
expect(wrapper.findAll('.prometheus-panel')).toHaveLength(0);
 
done();
})
Loading
Loading
@@ -152,9 +155,7 @@ describe('Dashboard', () => {
wrapper.vm
.$nextTick()
.then(() => {
const environmentDropdownItems = wrapper
.find('.js-environments-dropdown')
.findAll(GlDropdownItem);
const environmentDropdownItems = findAllEnvironmentsDropdownItems();
 
expect(wrapper.vm.environments.length).toEqual(environmentData.length);
expect(environmentDropdownItems.length).toEqual(wrapper.vm.environments.length);
Loading
Loading
@@ -176,10 +177,7 @@ describe('Dashboard', () => {
wrapper.vm
.$nextTick()
.then(() => {
const environmentDropdownItems = wrapper
.find('.js-environments-dropdown')
.findAll(GlDropdownItem);
const activeItem = environmentDropdownItems.wrappers.filter(itemWrapper =>
const activeItem = findAllEnvironmentsDropdownItems().wrappers.filter(itemWrapper =>
itemWrapper.find('.active').exists(),
);
 
Loading
Loading
@@ -205,11 +203,7 @@ describe('Dashboard', () => {
wrapper.vm
.$nextTick()
.then(() => {
const environmentDropdownItems = wrapper
.find('.js-environments-dropdown')
.findAll(GlDropdownItem);
expect(environmentDropdownItems.length).toEqual(0);
expect(findAllEnvironmentsDropdownItems()).toHaveLength(0);
done();
})
.catch(done.fail);
Loading
Loading
Loading
Loading
@@ -87,7 +87,7 @@ describe('issue_comment_form component', () => {
expect(wrapper.vm.toggleIssueState).toHaveBeenCalled();
});
 
it('should disable action button whilst submitting', done => {
it('should disable action button while submitting', done => {
const saveNotePromise = Promise.resolve();
wrapper.vm.note = 'hello world';
jest.spyOn(wrapper.vm, 'saveNote').mockReturnValue(saveNotePromise);
Loading
Loading
Loading
Loading
@@ -94,7 +94,7 @@ describe('iPython notebook renderer', () => {
 
it('shows error message', () => {
expect(document.querySelector('.md').textContent.trim()).toBe(
'An error occurred whilst parsing the file.',
'An error occurred while parsing the file.',
);
});
});
Loading
Loading
@@ -123,7 +123,7 @@ describe('iPython notebook renderer', () => {
 
it('shows error message', () => {
expect(document.querySelector('.md').textContent.trim()).toBe(
'An error occurred whilst loading the file. Please try again later.',
'An error occurred while loading the file. Please try again later.',
);
});
});
Loading
Loading
Loading
Loading
@@ -65,7 +65,7 @@ describe('PDF renderer', () => {
 
it('shows error message', () => {
expect(document.querySelector('.md').textContent.trim()).toBe(
'An error occurred whilst loading the file. Please try again later.',
'An error occurred while loading the file. Please try again later.',
);
});
});
Loading
Loading
Loading
Loading
@@ -180,7 +180,7 @@ describe('IDE store merge request actions', () => {
.then(done.fail)
.catch(() => {
expect(dispatch).toHaveBeenCalledWith('setErrorMessage', {
text: 'An error occurred whilst loading the merge request.',
text: 'An error occurred while loading the merge request.',
action: jasmine.any(Function),
actionText: 'Please try again',
actionPayload: {
Loading
Loading
@@ -253,7 +253,7 @@ describe('IDE store merge request actions', () => {
.then(done.fail)
.catch(() => {
expect(dispatch).toHaveBeenCalledWith('setErrorMessage', {
text: 'An error occurred whilst loading the merge request changes.',
text: 'An error occurred while loading the merge request changes.',
action: jasmine.any(Function),
actionText: 'Please try again',
actionPayload: {
Loading
Loading
@@ -323,7 +323,7 @@ describe('IDE store merge request actions', () => {
.then(done.fail)
.catch(() => {
expect(dispatch).toHaveBeenCalledWith('setErrorMessage', {
text: 'An error occurred whilst loading the merge request version data.',
text: 'An error occurred while loading the merge request version data.',
action: jasmine.any(Function),
actionText: 'Please try again',
actionPayload: {
Loading
Loading
Loading
Loading
@@ -125,7 +125,7 @@ describe('Multi-file store tree actions', () => {
.then(done.fail)
.catch(() => {
expect(dispatch).toHaveBeenCalledWith('setErrorMessage', {
text: 'An error occurred whilst loading all the files.',
text: 'An error occurred while loading all the files.',
action: jasmine.any(Function),
actionText: 'Please try again',
actionPayload: { projectId: 'abc/def', branchId: 'master-testing' },
Loading
Loading
Loading
Loading
@@ -275,13 +275,15 @@ RSpec.shared_examples 'thread comments' do |resource_name|
find("#{menu_selector} li", match: :first)
items = all("#{menu_selector} li")
 
expect(items.first).to have_content 'Comment'
expect(items.first).to have_selector '.fa-check'
expect(items.first['class']).to match 'droplab-item-selected'
expect(items.last).to have_content 'Start thread'
expect(items.last).not_to have_selector '.fa-check'
expect(items.last['class']).not_to match 'droplab-item-selected'
aggregate_failures do
expect(items.first).to have_content 'Comment'
expect(items.first).to have_selector '.fa-check'
expect(items.first['class']).to match 'droplab-item-selected'
expect(items.last).to have_content 'Start thread'
expect(items.last).not_to have_selector '.fa-check'
expect(items.last['class']).not_to match 'droplab-item-selected'
end
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment