[CCR] Fixes CCR accessibility tests (#171618)

This commit is contained in:
Ignacio Rivas 2023-11-23 17:00:00 +01:00 committed by GitHub
parent df16cd9c2c
commit 3240ab6d7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 6 deletions

View file

@ -309,8 +309,7 @@ describe('<FollowerIndicesList />', () => {
});
});
// FLAKY: https://github.com/elastic/kibana/issues/100951
describe.skip('detail panel', () => {
describe('detail panel', () => {
test('should open a detail panel when clicking on a follower index', async () => {
expect(exists('followerIndexDetail')).toBe(false);
@ -372,7 +371,8 @@ describe('<FollowerIndicesList />', () => {
);
});
test('should have a section to render the follower index shards stats', async () => {
// FLAKY: https://github.com/elastic/kibana/issues/100951
test.skip('should have a section to render the follower index shards stats', async () => {
await actions.clickFollowerIndexAt(0);
expect(exists('followerIndexDetail.shardsStatsSection')).toBe(true);

View file

@ -70,6 +70,9 @@ export const ConfirmTrustSetupModal = ({ closeModal, onSubmit }: ModalProps) =>
label={i18n.translate('xpack.remoteClusters.clusterWizard.trustStep.modal.checkbox', {
defaultMessage: 'Yes, I have setup trust',
})}
labelProps={{
'data-test-subj': 'remoteClusterTrustCheckboxLabel',
}}
checked={hasSetupTrust}
onChange={() => setHasSetupTrust(!hasSetupTrust)}
data-test-subj="remoteClusterTrustCheckbox"

View file

@ -48,8 +48,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
// CCR tests stay in that order. Their execution fails if rearranged.
require.resolve('./apps/remote_clusters'),
require.resolve('./apps/snapshot_and_restore'),
// https://github.com/elastic/kibana/issues/153599
// require.resolve('./apps/cross_cluster_replication'),
require.resolve('./apps/cross_cluster_replication'),
require.resolve('./apps/reporting'),
require.resolve('./apps/enterprise_search'),
// require.resolve('./apps/license_management'),

View file

@ -35,7 +35,7 @@ export function RemoteClustersPageProvider({ getService }: FtrProviderContext) {
// Complete trust setup
await testSubjects.click('setupTrustDoneButton');
await testSubjects.setCheckbox('remoteClusterTrustCheckbox', 'check');
await testSubjects.setCheckbox('remoteClusterTrustCheckboxLabel', 'check');
await testSubjects.click('remoteClusterTrustSubmitButton');
},
async getRemoteClustersList() {