Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-14375] Fix flaky E2E tests #2544

Merged
merged 3 commits into from
Mar 29, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added suggestion from @cometkim
Co-Authored-By: saturninoabril <[email protected]>
  • Loading branch information
cometkim and saturninoabril committed Mar 28, 2019
commit b173f6931657a3a051432981a7c5fbb41dc9794a
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Cypress.Commands.add('getLastPost', () => {
});

Cypress.Commands.add('getLastPostId', () => {
return cy.get('#postListContent').children().children().children().children().children().first().invoke('attr', 'id').then((divPostId) => {
return cy.get('#postListContent [id^=post]:first').invoke('attr', 'id').then((divPostId) => {
return divPostId.replace('post_', '');
});
});
Expand Down