Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#163: Show latest metric only #165

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[SR PL] update cypress tests for log_metric as they should now only s…
…how last element #163
  • Loading branch information
pippinlee committed May 29, 2020

Verified

This commit was signed with the committer’s verified signature.
nickzelei Nick Zelei
commit 407347c4aaef902023f1fef2d868cee4dd8d1a75
Original file line number Diff line number Diff line change
@@ -22,17 +22,17 @@ describe('Test Log Metric', () => {
},
{
label: 'metric_list_of_ints',
value: '[1, 2]',
value: '2',
hasHover: false,
},
{
label: 'metric_long_list_of_ints',
value: '[1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2]',
value: '2',
hasHover: true,
},
{
label: 'metric_long_list_of_long_ints',
value: '[8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24]',
value: '8.888888888888889e+24',
hasHover: true,
},
{
@@ -42,7 +42,7 @@ describe('Test Log Metric', () => {
},
{
label: 'metric_repeat',
value: '[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]',
value: '19',
hasHover: true,
},
],
@@ -64,17 +64,17 @@ describe('Test Log Metric', () => {
},
{
label: 'metric_list_of_floats',
value: '[1, 2]',
value: '2',
hasHover: false,
},
{
label: 'metric_long_list_of_floats',
value: '[1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2]',
value: '2',
hasHover: true,
},
{
label: 'metric_long_list_of_long_floats',
value: '[999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888]',
value: '999999999.8888888',
hasHover: true,
},
{
@@ -84,7 +84,7 @@ describe('Test Log Metric', () => {
},
{
label: 'metric_repeat',
value: '[0, 0.3333333333333333, 0.6666666666666666, 1, 1.3333333333333333, 1.6666666666666667, 2, 2.3333333333333335, 2.6666666666666665, 3, 3.3333333333333335, 3.6666666666666665, 4, 4.333333333333333, 4.666666666666667, 5, 5.333333333333333, 5.666666666666667, 6, 6.333333333333333]',
value: '6.333333333333333',
hasHover: true,
},
],
@@ -106,7 +106,7 @@ describe('Test Log Metric', () => {
},
{
label: 'metric_long_list_of_str',
value: '[qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe]',
value: 'qwe',
hasHover: true,
},
{
@@ -116,7 +116,7 @@ describe('Test Log Metric', () => {
},
{
label: 'metric_repeat',
value: '[str0, str1, str2, str3, str4, str5, str6, str7, str8, str9, str10, str11, str12, str13, str14, str15, str16, str17, str18, str19]',
value: 'str19',
hasHover: true,
},
],