mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* fix(code/frontend): fix and enable code functional test
This commit is contained in:
parent
f5f121a80c
commit
81bc4f3e67
9 changed files with 23 additions and 22 deletions
|
@ -23,9 +23,11 @@ export default function codeIntelligenceFunctionalTests({
|
|||
const FIND_TIME = config.get('timeouts.find');
|
||||
const PageObjects = getPageObjects(['common', 'header', 'security', 'code', 'home']);
|
||||
|
||||
const exists = async (selector: string) => testSubjects.exists(selector, { allowHidden: true });
|
||||
const exists = async (selector: string) =>
|
||||
await testSubjects.exists(selector, { allowHidden: true });
|
||||
|
||||
describe('Code Intelligence', () => {
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/45094
|
||||
describe.skip('Code Intelligence', () => {
|
||||
describe('Code intelligence in source view page', () => {
|
||||
const repositoryListSelector = 'codeRepositoryList > codeRepositoryItem';
|
||||
const testGoToDefinition = async () => {
|
||||
|
@ -88,7 +90,7 @@ export default function codeIntelligenceFunctionalTests({
|
|||
});
|
||||
|
||||
after(async () => {
|
||||
await PageObjects.security.logout();
|
||||
await PageObjects.security.forceLogout();
|
||||
await esArchiver.unload('code/repositories/typescript_node_starter');
|
||||
await repoUnload(
|
||||
'github.com/elastic/TypeScript-Node-Starter',
|
||||
|
|
|
@ -22,12 +22,12 @@ export default function exploreRepositoryFunctionalTests({
|
|||
const config = getService('config');
|
||||
const PageObjects = getPageObjects(['common', 'header', 'security', 'code', 'home']);
|
||||
|
||||
const exists = async (selector: string) => testSubjects.exists(selector, { allowHidden: true });
|
||||
const exists = async (selector: string) =>
|
||||
await testSubjects.exists(selector, { allowHidden: true });
|
||||
|
||||
const FIND_TIME = config.get('timeouts.find');
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/42111
|
||||
describe.skip('Explore Repository', function() {
|
||||
describe('Explore Repository', function() {
|
||||
this.tags('smoke');
|
||||
describe('Explore a repository', () => {
|
||||
const repositoryListSelector = 'codeRepositoryList > codeRepositoryItem';
|
||||
|
@ -42,7 +42,7 @@ export default function exploreRepositoryFunctionalTests({
|
|||
});
|
||||
|
||||
after(async () => {
|
||||
await PageObjects.security.logout();
|
||||
await PageObjects.security.forceLogout();
|
||||
await esArchiver.unload('code/repositories/typescript_node_starter');
|
||||
await repoUnload(
|
||||
'github.com/elastic/TypeScript-Node-Starter',
|
||||
|
@ -167,7 +167,7 @@ export default function exploreRepositoryFunctionalTests({
|
|||
log.info('src folder closed');
|
||||
});
|
||||
|
||||
it('highlight only one symbol', async () => {
|
||||
it.skip('highlight only one symbol', async () => {
|
||||
await retry.try(async () => {
|
||||
expect(await exists('codeFileTreeNode-Directory-src')).ok();
|
||||
});
|
||||
|
@ -242,7 +242,7 @@ export default function exploreRepositoryFunctionalTests({
|
|||
});
|
||||
});
|
||||
|
||||
it('Navigate source file via structure tree', async () => {
|
||||
it.skip('Navigate source file via structure tree', async () => {
|
||||
log.debug('Navigate source file via structure tree');
|
||||
// Wait the file tree to be rendered and click the 'src' folder on the file tree.
|
||||
await retry.try(async () => {
|
||||
|
@ -268,7 +268,7 @@ export default function exploreRepositoryFunctionalTests({
|
|||
});
|
||||
|
||||
// Click the structure tree tab
|
||||
await testSubjects.click('codeStructureTreeTab');
|
||||
await testSubjects.clickWhenNotDisabled('codeStructureTreeTab');
|
||||
await retry.tryForTime(300000, async () => {
|
||||
expect(await exists('codeStructureTreeNode-User')).to.be(true);
|
||||
|
||||
|
|
|
@ -19,10 +19,10 @@ export default function exploreRepositoryFunctionalTests({
|
|||
const retry = getService('retry');
|
||||
const config = getService('config');
|
||||
const PageObjects = getPageObjects(['common', 'header', 'security', 'code', 'home']);
|
||||
const exists = async (selector: string) => testSubjects.exists(selector, { allowHidden: true });
|
||||
const exists = async (selector: string) =>
|
||||
await testSubjects.exists(selector, { allowHidden: true });
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/45079
|
||||
describe.skip('File Tree', function() {
|
||||
describe('File Tree', function() {
|
||||
this.tags('smoke');
|
||||
const repositoryListSelector = 'codeRepositoryList > codeRepositoryItem';
|
||||
|
||||
|
@ -45,7 +45,7 @@ export default function exploreRepositoryFunctionalTests({
|
|||
});
|
||||
|
||||
after(async () => {
|
||||
await PageObjects.security.logout();
|
||||
await PageObjects.security.forceLogout();
|
||||
await repoUnload(
|
||||
'github.com/elastic/code-examples_flatten-directory',
|
||||
config.get('kbnTestServer.installDir') || REPO_ROOT
|
||||
|
|
|
@ -50,7 +50,7 @@ export default function manageRepositoriesFunctionalTests({
|
|||
});
|
||||
|
||||
after(async () => {
|
||||
await PageObjects.security.logout();
|
||||
await PageObjects.security.forceLogout();
|
||||
await esArchiver.unload('code/repositories/typescript_node_starter');
|
||||
await repoUnload(
|
||||
'github.com/elastic/TypeScript-Node-Starter',
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export default function codeApp({ loadTestFile }: FtrProviderContext) {
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/45094
|
||||
describe.skip('Code', function codeAppTestSuite() {
|
||||
describe('Code', function codeAppTestSuite() {
|
||||
// Add 'skipCloud' regarding issue: https://github.com/elastic/kibana/issues/39386
|
||||
this.tags(['ciGroup2', 'skipCloud']);
|
||||
loadTestFile(require.resolve('./lang_server_coverage'));
|
||||
|
|
|
@ -71,7 +71,7 @@ export default function langServerCoverageFunctionalTests({
|
|||
expect(repositoryItems).to.have.length(0);
|
||||
});
|
||||
|
||||
await PageObjects.security.logout();
|
||||
await PageObjects.security.forceLogout();
|
||||
});
|
||||
|
||||
it('Verify the symbol/referernces object counts in Elasticsearch', async () => {
|
||||
|
|
|
@ -29,7 +29,7 @@ export default function manageRepositoriesFunctionalTests({
|
|||
});
|
||||
|
||||
after(async () => {
|
||||
await PageObjects.security.logout();
|
||||
await PageObjects.security.forceLogout();
|
||||
});
|
||||
|
||||
it('import repository', async () => {
|
||||
|
|
|
@ -32,7 +32,7 @@ export default function searchFunctonalTests({ getService, getPageObjects }: Ftr
|
|||
});
|
||||
|
||||
after(async () => {
|
||||
await PageObjects.security.logout();
|
||||
await PageObjects.security.forceLogout();
|
||||
await esArchiver.unload('code/repositories/typescript_node_starter');
|
||||
});
|
||||
|
||||
|
|
|
@ -63,12 +63,12 @@ export default function testWithSecurity({ getService, getPageObjects }: FtrProv
|
|||
});
|
||||
|
||||
after(async () => {
|
||||
await PageObjects.security.logout();
|
||||
await PageObjects.security.forceLogout();
|
||||
await esArchiver.unload('empty_kibana');
|
||||
});
|
||||
|
||||
async function login(user: string) {
|
||||
await PageObjects.security.logout();
|
||||
await PageObjects.security.forceLogout();
|
||||
await PageObjects.security.login(user, dummyPassword);
|
||||
await PageObjects.common.navigateToApp('code');
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue