Skip to content

Commit

Permalink
[CCR] Fixes CCR accessibility tests (elastic#171618)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba authored Nov 23, 2023
1 parent df16cd9 commit 3240ab6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions x-pack/test/accessibility/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3240ab6

Please sign in to comment.