Fix spaces test flakyness (#100605)

This commit is contained in:
Larry Gregory 2021-05-26 06:47:28 -04:00 committed by GitHub
parent 93acfb4d43
commit 5d5cc55b3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 8 deletions

View file

@ -71,9 +71,6 @@ export class NavControlPopover extends Component<Props, State> {
public render() {
const button = this.getActiveSpaceButton();
if (!button) {
return null;
}
let element: React.ReactNode;
if (!this.state.loading && this.state.spaces.length < 2) {
@ -102,7 +99,7 @@ export class NavControlPopover extends Component<Props, State> {
return (
<EuiPopover
id={'spcMenuPopover'}
data-test-subj={`spacesNavSelector`}
data-test-subj={`${this.state.loading ? 'spacesNavSelectorLoading' : 'spacesNavSelector'}`}
button={button}
isOpen={this.state.showSpaceSelector}
closePopover={this.closeSpaceSelector}

View file

@ -14,8 +14,7 @@ export default function enterSpaceFunctonalTests({
const esArchiver = getService('esArchiver');
const PageObjects = getPageObjects(['security', 'spaceSelector']);
// FLAKY: https://github.com/elastic/kibana/issues/100012
describe.skip('Enter Space', function () {
describe('Enter Space', function () {
this.tags('includeFirefox');
before(async () => {
await esArchiver.load('spaces/enter_space');

View file

@ -22,8 +22,7 @@ export default function spaceSelectorFunctionalTests({
'spaceSelector',
]);
// FLAKY: https://github.com/elastic/kibana/issues/99581
describe.skip('Spaces', function () {
describe('Spaces', function () {
this.tags('includeFirefox');
describe('Space Selector', () => {
before(async () => {