Skip to content

Commit 6b5108a

Browse files
authored
fixes pagination tests (#51822)
1 parent f29af12 commit 6b5108a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

x-pack/legacy/plugins/siem/cypress/integration/smoke_tests/pagination/pagination.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ describe('Pagination', () => {
2323
return logout();
2424
});
2525

26-
it.skip('pagination updates results and page number', () => {
26+
it('pagination updates results and page number', () => {
2727
loginAndWaitForPage(HOSTS_PAGE_TAB_URLS.uncommonProcesses);
2828
waitForTableLoad(UNCOMMON_PROCCESSES_TABLE);
2929
cy.get(getPageButtonSelector(0)).should('have.class', 'euiPaginationButton-isActive');
3030

31-
cy.get(getDraggableField('user.name'))
31+
cy.get(getDraggableField('process.name'))
3232
.first()
3333
.invoke('text')
3434
.then(text1 => {
3535
cy.get(getPageButtonSelector(2)).click({ force: true });
3636
// wait for table to be done loading
3737
waitForTableLoad(UNCOMMON_PROCCESSES_TABLE);
38-
cy.get(getDraggableField('user.name'))
38+
cy.get(getDraggableField('process.name'))
3939
.first()
4040
.invoke('text')
4141
.should(text2 => {
@@ -55,7 +55,7 @@ describe('Pagination', () => {
5555
// wait for table to be done loading
5656
waitForTableLoad(UNCOMMON_PROCCESSES_TABLE);
5757

58-
cy.get(getDraggableField('user.name'))
58+
cy.get(getDraggableField('process.name'))
5959
.first()
6060
.invoke('text')
6161
.then(text2 => {
@@ -70,7 +70,7 @@ describe('Pagination', () => {
7070
waitForTableLoad(UNCOMMON_PROCCESSES_TABLE);
7171
// check uncommon processes table picks up at 3
7272
cy.get(getPageButtonSelector(2)).should('have.class', 'euiPaginationButton-isActive');
73-
cy.get(getDraggableField('user.name'))
73+
cy.get(getDraggableField('process.name'))
7474
.first()
7575
.invoke('text')
7676
.should(text1 => {
@@ -82,7 +82,7 @@ describe('Pagination', () => {
8282
* We only want to comment this code/test for now because it can be nondeterministic
8383
* when we figure out a way to really mock the data, we should come back to it
8484
*/
85-
it.skip('pagination resets results and page number to first page when refresh is clicked', () => {
85+
it('pagination resets results and page number to first page when refresh is clicked', () => {
8686
loginAndWaitForPage(HOSTS_PAGE_TAB_URLS.uncommonProcesses);
8787
cy.get(NUMBERED_PAGINATION, { timeout: DEFAULT_TIMEOUT });
8888
cy.get(getPageButtonSelector(0)).should('have.class', 'euiPaginationButton-isActive');
@@ -100,7 +100,7 @@ describe('Pagination', () => {
100100
.last()
101101
.click({ force: true });
102102
waitForTableLoad(UNCOMMON_PROCCESSES_TABLE);
103-
cy.get(getPageButtonSelector(0)).should('have.class', 'euiPaginationButton-isActive');
103+
cy.get(getPageButtonSelector(2)).should('have.class', 'euiPaginationButton-isActive');
104104
// cy.get(getDraggableField('user.name'))
105105
// .first()
106106
// .invoke('text')

0 commit comments

Comments
 (0)