summaryrefslogtreecommitdiff
path: root/spec/frontend/notebook/mock_data.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-21 12:21:08 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-21 12:21:08 +0000
commite7198b914bf1d6594909e35d3d00d0a0b260f250 (patch)
tree6fe636fedeae9c679839d5bf27dc091af037e765 /spec/frontend/notebook/mock_data.js
parent3b80f22aba42e3e424de5c3dd15cc11f96aaac65 (diff)
downloadgitlab-ce-e7198b914bf1d6594909e35d3d00d0a0b260f250.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/notebook/mock_data.js')
-rw-r--r--spec/frontend/notebook/mock_data.js52
1 files changed, 52 insertions, 0 deletions
diff --git a/spec/frontend/notebook/mock_data.js b/spec/frontend/notebook/mock_data.js
index 15db2931b3c..9c63ad773b5 100644
--- a/spec/frontend/notebook/mock_data.js
+++ b/spec/frontend/notebook/mock_data.js
@@ -45,6 +45,58 @@ export const outputWithDataframeContent = [
'</div>',
];
+export const outputWithMultiIndexDataFrame = [
+ '<div>\n',
+ '<style scoped>\n',
+ ' .dataframe tbody tr th:only-of-type {\n',
+ ' vertical-align: middle;\n',
+ ' }\n',
+ '\n',
+ ' .dataframe tbody tr th {\n',
+ ' vertical-align: top;\n',
+ ' }\n',
+ '\n',
+ ' .dataframe thead th {\n',
+ ' text-align: right;\n',
+ ' }\n',
+ '</style>\n',
+ '<table border="1" class="dataframe">\n',
+ ' <thead>\n',
+ ' <tr style="text-align: right;">\n',
+ ' <th></th>\n',
+ ' <th></th>\n',
+ ' <th>0</th>\n',
+ ' </tr>\n',
+ ' <tr>\n',
+ ' <th>first</th>\n',
+ ' <th>second</th>\n',
+ ' <th></th>\n',
+ ' </tr>\n',
+ ' </thead>\n',
+ ' <tbody>\n',
+ ' <tr>\n',
+ ' <th rowspan="2" valign="top">bar</th>\n',
+ ' <th>one</th>\n',
+ ' <td>1</td>\n',
+ ' </tr>\n',
+ ' <tr>\n',
+ ' <th>two</th>\n',
+ ' <td>2</td>\n',
+ ' </tr>\n',
+ ' <tr>\n',
+ ' <th rowspan="2" valign="top">baz</th>\n',
+ ' <th>one</th>\n',
+ ' <td>3</td>\n',
+ ' </tr>\n',
+ ' <tr>\n',
+ ' <th>two</th>\n',
+ ' <td>4</td>\n',
+ ' </tr>\n',
+ ' </tbody>\n',
+ '</table>\n',
+ '</div>',
+];
+
export const outputWithDataframe = {
data: {
'text/html': outputWithDataframeContent,