Skip to content

Commit

Permalink
unskipping the test, added toggle functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmivkulkarni committed Mar 26, 2021
1 parent b9ef084 commit 6f072f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions test/functional/apps/dashboard/url_field_formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
expect(currentUrl).to.equal(fieldUrl);
};

// FLAKY: https://github.com/elastic/kibana/issues/79463
describe.skip('Changing field formatter to Url', () => {
describe('Changing field formatter to Url', () => {
before(async function () {
await esArchiver.load('dashboard/current/kibana');
await kibanaServer.uiSettings.replace({
Expand Down
5 changes: 5 additions & 0 deletions test/functional/page_objects/settings_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,11 @@ export function SettingsPageProvider({ getService, getPageObjects }: FtrProvider

async setFieldFormat(format: string) {
log.debug('set scripted field format = ' + format);
const formatRow = await testSubjects.find('formatRow');
const formatRowToggle = (
await formatRow.findAllByCssSelector('[data-test-subj="toggle"]')
)[0];
await formatRowToggle.click();
await find.clickByCssSelector(
'select[data-test-subj="editorSelectedFormatId"] > option[value="' + format + '"]'
);
Expand Down

0 comments on commit 6f072f4

Please sign in to comment.