mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Conflicts: # .github/CODEOWNERS
This commit is contained in:
parent
22a34602b7
commit
c9cc89b861
2 changed files with 4 additions and 23 deletions
|
@ -12,17 +12,16 @@ export default function statusPageFunctonalTests({
|
|||
getPageObjects,
|
||||
}: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const PageObjects = getPageObjects(['security', 'statusPage', 'home']);
|
||||
const PageObjects = getPageObjects(['security', 'statusPage', 'common']);
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/50448
|
||||
describe.skip('Status Page', function () {
|
||||
describe('Status Page', function () {
|
||||
this.tags(['skipCloud', 'includeFirefox']);
|
||||
before(async () => await esArchiver.load('empty_kibana'));
|
||||
after(async () => await esArchiver.unload('empty_kibana'));
|
||||
|
||||
it('allows user to navigate without authentication', async () => {
|
||||
await PageObjects.security.forceLogout();
|
||||
await PageObjects.statusPage.navigateToPage();
|
||||
await PageObjects.common.navigateToApp('status_page', { shouldLoginIfPrompted: false });
|
||||
await PageObjects.statusPage.expectStatusPage();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -5,36 +5,18 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import { FtrProviderContext } from '../ftr_provider_context';
|
||||
|
||||
export function StatusPagePageProvider({ getService }: FtrProviderContext) {
|
||||
const retry = getService('retry');
|
||||
const log = getService('log');
|
||||
const browser = getService('browser');
|
||||
const find = getService('find');
|
||||
const deployment = getService('deployment');
|
||||
|
||||
class StatusPage {
|
||||
async initTests() {
|
||||
log.debug('StatusPage:initTests');
|
||||
}
|
||||
|
||||
async navigateToPage() {
|
||||
return await retry.try(async () => {
|
||||
const url = deployment.getHostPort() + '/status';
|
||||
log.info(`StatusPage:navigateToPage(): ${url}`);
|
||||
await browser.get(url);
|
||||
});
|
||||
}
|
||||
|
||||
async expectStatusPage(): Promise<void> {
|
||||
return await retry.try(async () => {
|
||||
log.debug(`expectStatusPage()`);
|
||||
await find.byCssSelector('[data-test-subj="statusPageRoot"]', 20000);
|
||||
const url = await browser.getCurrentUrl();
|
||||
expect(url).to.contain(`/status`);
|
||||
});
|
||||
await find.byCssSelector('[data-test-subj="statusPageRoot"]', 20000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue