summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/e2e/pools/pools.e2e-spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/e2e/pools/pools.e2e-spec.ts')
-rw-r--r--src/pybind/mgr/dashboard/frontend/e2e/pools/pools.e2e-spec.ts36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/e2e/pools/pools.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/e2e/pools/pools.e2e-spec.ts
new file mode 100644
index 00000000..5d68b0fe
--- /dev/null
+++ b/src/pybind/mgr/dashboard/frontend/e2e/pools/pools.e2e-spec.ts
@@ -0,0 +1,36 @@
+import { Helper } from '../helper.po';
+import { PoolsPage } from './pools.po';
+
+describe('Pools page', () => {
+ let page: PoolsPage;
+
+ beforeAll(() => {
+ page = new PoolsPage();
+ });
+
+ afterEach(() => {
+ Helper.checkConsole();
+ });
+
+ describe('breadcrumb and tab tests', () => {
+ beforeAll(() => {
+ page.navigateTo();
+ });
+
+ it('should open and show breadcrumb', () => {
+ Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Pools');
+ });
+
+ it('should show two tabs', () => {
+ expect(Helper.getTabsCount()).toEqual(2);
+ });
+
+ it('should show pools list tab at first', () => {
+ expect(Helper.getTabText(0)).toEqual('Pools List');
+ });
+
+ it('should show overall performance as a second tab', () => {
+ expect(Helper.getTabText(1)).toEqual('Overall Performance');
+ });
+ });
+});