-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Code] fix history functional test #37332
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ export default function manageRepositoriesFunctionalTests({ | |
const PageObjects = getPageObjects(['common', 'header', 'security', 'code', 'home']); | ||
|
||
// FLAKY: https://github.com/elastic/kibana/issues/36495 | ||
describe.skip('History', () => { | ||
describe('History', () => { | ||
const repositoryListSelector = 'codeRepositoryList codeRepositoryItem'; | ||
|
||
describe('browser history can go back while exploring code app', () => { | ||
|
@@ -200,22 +200,22 @@ export default function manageRepositoriesFunctionalTests({ | |
await PageObjects.common.sleep(5000); | ||
await testSubjects.click('codeStructureTreeTab'); | ||
await retry.try(async () => { | ||
const tabText = await (await find.byCssSelector('.euiTab-isSelected')).getVisibleText(); | ||
expect(tabText).to.equal('Structure'); | ||
// if structure tree tab is active, file tree tab's `data-test-subj` would be `codeFileTreeTab` | ||
expect(testSubjects.exists('codeFileTreeTab')).to.be.ok(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we change to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok |
||
}); | ||
|
||
await browser.goBack(); | ||
|
||
await retry.try(async () => { | ||
const tabText = await (await find.byCssSelector('.euiTab-isSelected')).getVisibleText(); | ||
expect(tabText).to.equal('File'); | ||
// if file tree tab is active, file tree tab's `data-test-subj` would be `codeFileTreeTabActive` | ||
expect(testSubjects.exists('codeFileTreeTabActive')).to.be.ok(); | ||
}); | ||
|
||
await driver.navigate().forward(); | ||
|
||
await retry.try(async () => { | ||
const tabText = await (await find.byCssSelector('.euiTab-isSelected')).getVisibleText(); | ||
expect(tabText).to.equal('Structure'); | ||
// if structure tree tab is active, file tree tab's `data-test-subj` would be `codeFileTreeTab` | ||
expect(testSubjects.exists('codeFileTreeTab')).to.be.ok(); | ||
}); | ||
}); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in this PR, the explore-repository test is skipped, so do we need to keep the changes in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep the change since we are gonna uncomment this any way