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

[Time to Visualize] Add functional tests for adding visualizations from Visualize, Lens, and Maps and adjust capabilities for new modal #89245

Merged
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0e0999d
Add tests for adding visualizations from Visualize and Lens using new…
poffdeluxe Jan 20, 2021
cb031e1
Merge branch 'master' into test/add-to-dashboard-modal-actual
kibanamachine Jan 25, 2021
6c4fb61
Default Lens tests to add to library
poffdeluxe Jan 27, 2021
f17637f
Merge branch 'test/add-to-dashboard-modal-actual' of github.com:poffd…
poffdeluxe Jan 27, 2021
9a467de
Fix tests and licenses
poffdeluxe Jan 28, 2021
cfb0e87
Merge branch 'master' into test/add-to-dashboard-modal-actual
kibanamachine Jan 28, 2021
8d99df7
Add add-to-dashboard tests for maps
poffdeluxe Jan 29, 2021
7a4e5c5
Merge branch 'master' into test/add-to-dashboard-modal-actual
kibanamachine Jan 29, 2021
dc85155
Test fix
poffdeluxe Jan 29, 2021
785cf1c
wip
poffdeluxe Feb 1, 2021
3878d62
Merge branch 'master' into test/add-to-dashboard-modal-actual
poffdeluxe Feb 3, 2021
c96e686
Merge branch 'master' into test/add-to-dashboard-modal-actual
kibanamachine Feb 3, 2021
9242588
fix security tests
poffdeluxe Feb 4, 2021
a049f53
Merge branch 'test/atd-modal-security' into test/add-to-dashboard-mod…
poffdeluxe Feb 4, 2021
ff970ca
Fixing tests by resetting new dashboards
poffdeluxe Feb 4, 2021
00a289f
Merge branch 'master' into test/add-to-dashboard-modal-actual
poffdeluxe Feb 4, 2021
2b5bb2f
fix headers
poffdeluxe Feb 4, 2021
e7acb97
Merge branch 'master' into test/add-to-dashboard-modal-actual
kibanamachine Feb 4, 2021
29d1448
Merge branch 'master' into test/add-to-dashboard-modal-actual
poffdeluxe Feb 5, 2021
fd22199
Merge branch 'test/add-to-dashboard-modal-actual' of github.com:poffd…
poffdeluxe Feb 5, 2021
19b1994
remove dupe prop
poffdeluxe Feb 5, 2021
dcafedc
remove dupe dashboard capabilities from visualize plugin
poffdeluxe Feb 5, 2021
1b64837
Merge branch 'master' into test/add-to-dashboard-modal-actual
poffdeluxe Feb 8, 2021
ebb645d
Clean up dashboard privileges for read only dashboard roles
poffdeluxe Feb 8, 2021
d0706b2
Remove unused import
poffdeluxe Feb 8, 2021
c0da888
Merge branch 'master' into test/add-to-dashboard-modal-actual
kibanamachine Feb 10, 2021
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
Next Next commit
Test fix
poffdeluxe committed Jan 29, 2021
commit dc851555a5e7b8ca2236168d52e496c97e393042
6 changes: 4 additions & 2 deletions test/functional/page_objects/time_to_visualize_page.ts
Original file line number Diff line number Diff line change
@@ -44,13 +44,15 @@ export function TimeToVisualizePageProvider({ getService, getPageObjects }: FtrP
) {
await testSubjects.setValue('savedObjectTitle', vizName);

if (saveAsNew) {
const hasSaveAsNew = await testSubjects.exists('saveAsNewCheckbox');
if (hasSaveAsNew && saveAsNew !== undefined) {
const state = saveAsNew ? 'check' : 'uncheck';
log.debug('save as new checkbox exists. Setting its state to', state);
await testSubjects.setEuiSwitch('saveAsNewCheckbox', state);
}

if (redirectToOrigin) {
const hasRedirectToOrigin = await testSubjects.exists('returnToOriginModeSwitch');
if (hasRedirectToOrigin && redirectToOrigin !== undefined) {
const state = redirectToOrigin ? 'check' : 'uncheck';
log.debug('redirect to origin checkbox exists. Setting its state to', state);
await testSubjects.setEuiSwitch('returnToOriginModeSwitch', state);