1 import { PoolPageHelper } from './pools.po';
3 describe('Pools page', () => {
4 let pools: PoolPageHelper;
5 const poolName = 'pool_e2e_pool/test';
7 beforeAll(async () => {
8 pools = new PoolPageHelper();
9 await pools.navigateTo();
12 afterEach(async () => {
13 await PoolPageHelper.checkConsole();
16 describe('breadcrumb and tab tests', () => {
17 it('should open and show breadcrumb', async () => {
18 await pools.waitTextToBePresent(pools.getBreadcrumb(), 'Pools');
21 it('should show two tabs', async () => {
22 await expect(pools.getTabsCount()).toEqual(2);
25 it('should show pools list tab at first', async () => {
26 await expect(pools.getTabText(0)).toEqual('Pools List');
29 it('should show overall performance as a second tab', async () => {
30 await expect(pools.getTabText(1)).toEqual('Overall Performance');
34 it('should create a pool', async () => {
35 await pools.exist(poolName, false);
36 await pools.navigateTo('create');
37 await pools.create(poolName, 8);
38 await pools.navigateTo();
39 await pools.exist(poolName, true);
42 it('should edit a pools placement group', async () => {
43 await pools.exist(poolName, true);
44 await pools.navigateTo();
45 await pools.edit_pool_pg(poolName, 32);
48 it('should delete a pool', async () => {
49 await pools.navigateTo();
50 await pools.delete(poolName);