Skip to content

Commit 734dd7f

Browse files
committed
update
1 parent b24e5b3 commit 734dd7f

File tree

7 files changed

+113
-0
lines changed

7 files changed

+113
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {paths} from "../../../../support/paths";
2+
import {validation} from "../../../../support/validation";
3+
4+
const route = paths.backend.catalog.categories
5+
6+
describe(`Checks admin system "${route.h3}"`, () => {
7+
beforeEach('Log in the user', () => {
8+
cy.visit('/admin');
9+
cy.adminLogInValidUser();
10+
cy.adminTestRoute(route);
11+
});
12+
13+
it(`tests`, () => {
14+
cy.log('Checking for error messages');
15+
});
16+
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {paths} from "../../../../support/paths";
2+
import {validation} from "../../../../support/validation";
3+
4+
const route = paths.backend.catalog.products
5+
6+
describe(`Checks admin system "${route.h3}"`, () => {
7+
beforeEach('Log in the user', () => {
8+
cy.visit('/admin');
9+
cy.adminLogInValidUser();
10+
cy.adminTestRoute(route);
11+
});
12+
13+
it(`tests`, () => {
14+
cy.log('Checking for error messages');
15+
});
16+
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {paths} from "../../../../support/paths";
2+
import {validation} from "../../../../support/validation";
3+
4+
const route = paths.backend.catalog.search
5+
6+
describe(`Checks admin system "${route.h3}"`, () => {
7+
beforeEach('Log in the user', () => {
8+
cy.visit('/admin');
9+
cy.adminLogInValidUser();
10+
cy.adminTestRoute(route);
11+
});
12+
13+
it(`tests`, () => {
14+
cy.log('Checking for error messages');
15+
});
16+
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {paths} from "../../../../support/paths";
2+
import {validation} from "../../../../support/validation";
3+
4+
const route = paths.backend.catalog.sitemap
5+
6+
describe(`Checks admin system "${route.h3}"`, () => {
7+
beforeEach('Log in the user', () => {
8+
cy.visit('/admin');
9+
cy.adminLogInValidUser();
10+
cy.adminTestRoute(route);
11+
});
12+
13+
it(`tests`, () => {
14+
cy.log('Checking for error messages');
15+
});
16+
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {paths} from "../../../../support/paths";
2+
import {validation} from "../../../../support/validation";
3+
4+
const route = paths.backend.catalog.urlrewrite
5+
6+
describe(`Checks admin system "${route.h3}"`, () => {
7+
beforeEach('Log in the user', () => {
8+
cy.visit('/admin');
9+
cy.adminLogInValidUser();
10+
cy.adminTestRoute(route);
11+
});
12+
13+
it(`tests`, () => {
14+
cy.log('Checking for error messages');
15+
});
16+
});
File renamed without changes.

cypress/support/paths.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export const adminNav = {
2+
catalog: '#nav-admin-catalog',
23
cms: '#nav-admin-cms',
34
customer: '#nav-admin-customer',
45
newsletter: '#nav-admin-newsletter',
@@ -9,6 +10,38 @@ export const adminNav = {
910

1011
export const paths = {
1112
backend: {
13+
catalog: {
14+
products: {
15+
parent: adminNav.catalog,
16+
id: '#nav-admin-catalog-products',
17+
url: 'catalog_product/index',
18+
h3: 'Manage Products',
19+
},
20+
categories: {
21+
parent: adminNav.catalog,
22+
id: '#nav-admin-catalog-categories',
23+
url: 'catalog_category/index',
24+
h3: 'Manage Categories',
25+
},
26+
search: {
27+
parent: adminNav.catalog,
28+
id: '#nav-admin-catalog-search',
29+
url: 'catalog_search/index',
30+
h3: 'Search',
31+
},
32+
sitemap: {
33+
parent: adminNav.catalog,
34+
id: '#nav-admin-catalog-sitemap',
35+
url: 'sitemap/index',
36+
h3: 'Google Sitemap',
37+
},
38+
urlrewrite: {
39+
parent: adminNav.catalog,
40+
id: '#nav-admin-catalog-urlrewrite',
41+
url: 'urlrewrite/index',
42+
h3: 'URL Rewrite Management',
43+
}
44+
},
1245
cms: {
1346
block: {
1447
parent: adminNav.cms,

0 commit comments

Comments
 (0)