Skip to content

Commit

Permalink
Master/Detail page test separated.
Browse files Browse the repository at this point in the history
  • Loading branch information
msyk committed Dec 6, 2023
1 parent ffe5f51 commit a9751ec
Show file tree
Hide file tree
Showing 10 changed files with 102 additions and 89 deletions.
30 changes: 0 additions & 30 deletions spec/run/test/specs/form_page_mysql.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ const FormPage = require('../pageobjects/FormPage/form_mysql.page')
const naviTest = require('./form_page_tests/navigation')
const queryTest = require('./form_page_tests/simplequery')
const formTest = require('./form_page_tests/form')
const mdPage = require('../pageobjects/MasterDetailPage/md_mysql.page')
const mdTest = require('./master_detail_page_tests/navigation')
const dualPage = require('../pageobjects/MasterDetailPage/dualpanes_mysql.page')
const dualTest = require('./master_detail_page_tests/dualpanes')
const separatePage = require('../pageobjects/MasterDetailPage/separate_mysql.page')
const separateTest = require('./master_detail_page_tests/separate')

describe('Form Page with MySQL', () => {
it('can open with the valid title.', async () => {
Expand All @@ -18,27 +12,3 @@ describe('Form Page with MySQL', () => {
queryTest(FormPage)
formTest(FormPage)
});

describe('Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await mdPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Master-Detail/MySQL")
})
mdTest(mdPage)
})

describe('Dual Panes Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await dualPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Dual-Panes/MySQL")
})
dualTest(mdPage)
})

describe('Separated Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await separatePage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Separate Master Page/MySQL")
})
separateTest(separatePage)
})
30 changes: 0 additions & 30 deletions spec/run/test/specs/form_page_postgresql.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ const FormPage = require('../pageobjects/FormPage/form_postgresql.page');
const naviTest = require('./form_page_tests/navigation')
const queryTest = require('./form_page_tests/simplequery')
const formTest = require('./form_page_tests/form')
const mdPage = require("../pageobjects/MasterDetailPage/md_postgresql.page");
const mdTest = require("./master_detail_page_tests/navigation");
const dualPage = require("../pageobjects/MasterDetailPage/dualpanes_postgresql.page");
const dualTest = require("./master_detail_page_tests/dualpanes");
const separatePage = require("../pageobjects/MasterDetailPage/separate_postgresql.page");
const separateTest = require("./master_detail_page_tests/separate");

describe('Form Page with PostgreSQL', () => {
it('can open with the valid title.', async () => {
Expand All @@ -18,27 +12,3 @@ describe('Form Page with PostgreSQL', () => {
queryTest(FormPage)
formTest(FormPage)
});

describe('Master-Detail Page with PostgreSQL', () => {
it('can open with the valid title.', async () => {
await mdPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Master-Detail/PostgreSQL")
})
mdTest(mdPage)
})

describe('Dual Panes Master-Detail Page with PostgreSQL', () => {
it('can open with the valid title.', async () => {
await dualPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Dual-Panes/PostgreSQL")
})
dualTest(mdPage)
})

describe('Separated Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await separatePage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Separate Master Page/PostgreSQL")
})
separateTest(separatePage)
})
29 changes: 0 additions & 29 deletions spec/run/test/specs/form_page_sqlite.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ const FormPage = require('../pageobjects/FormPage/form_sqlite.page');
const naviTest = require('./form_page_tests/navigation')
const queryTest = require('./form_page_tests/simplequery')
const formTest = require('./form_page_tests/form')
const mdPage = require("../pageobjects/MasterDetailPage/md_sqlite.page");
const mdTest = require("./master_detail_page_tests/navigation");
const dualPage = require("../pageobjects/MasterDetailPage/dualpanes_sqlite.page");
const dualTest = require("./master_detail_page_tests/dualpanes");
const separatePage = require("../pageobjects/MasterDetailPage/separate_sqlite.page");
const separateTest = require("./master_detail_page_tests/separate");

describe('Form Page with SQLite', () => {
it('can open with the valid title.', async () => {
Expand All @@ -18,26 +12,3 @@ describe('Form Page with SQLite', () => {
queryTest(FormPage)
formTest(FormPage)
});
describe('Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await mdPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Master-Detail/SQLite")
})
mdTest(mdPage)
})

describe('Dual Panes Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await dualPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Dual-Panes/SQLite")
})
dualTest(mdPage)
})

describe('Separated Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await separatePage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Separate Master Page/SQLite")
})
separateTest(separatePage)
})
30 changes: 30 additions & 0 deletions spec/run/test/specs/md_page_mysql.e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const mdPage = require('../pageobjects/MasterDetailPage/md_mysql.page')
const mdTest = require('./master_detail_page_tests/navigation')
const dualPage = require('../pageobjects/MasterDetailPage/dualpanes_mysql.page')
const dualTest = require('./master_detail_page_tests/dualpanes')
const separatePage = require('../pageobjects/MasterDetailPage/separate_mysql.page')
const separateTest = require('./master_detail_page_tests/separate')

describe('Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await mdPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Master-Detail/MySQL")
})
mdTest(mdPage)
})

describe('Dual Panes Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await dualPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Dual-Panes/MySQL")
})
dualTest(mdPage)
})

describe('Separated Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await separatePage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Separate Master Page/MySQL")
})
separateTest(separatePage)
})
30 changes: 30 additions & 0 deletions spec/run/test/specs/md_page_postgresql.e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const mdPage = require("../pageobjects/MasterDetailPage/md_postgresql.page");
const mdTest = require("./master_detail_page_tests/navigation");
const dualPage = require("../pageobjects/MasterDetailPage/dualpanes_postgresql.page");
const dualTest = require("./master_detail_page_tests/dualpanes");
const separatePage = require("../pageobjects/MasterDetailPage/separate_postgresql.page");
const separateTest = require("./master_detail_page_tests/separate");

describe('Master-Detail Page with PostgreSQL', () => {
it('can open with the valid title.', async () => {
await mdPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Master-Detail/PostgreSQL")
})
mdTest(mdPage)
})

describe('Dual Panes Master-Detail Page with PostgreSQL', () => {
it('can open with the valid title.', async () => {
await dualPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Dual-Panes/PostgreSQL")
})
dualTest(mdPage)
})

describe('Separated Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await separatePage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Separate Master Page/PostgreSQL")
})
separateTest(separatePage)
})
30 changes: 30 additions & 0 deletions spec/run/test/specs/md_page_sqlite.e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const mdPage = require("../pageobjects/MasterDetailPage/md_sqlite.page");
const mdTest = require("./master_detail_page_tests/navigation");
const dualPage = require("../pageobjects/MasterDetailPage/dualpanes_sqlite.page");
const dualTest = require("./master_detail_page_tests/dualpanes");
const separatePage = require("../pageobjects/MasterDetailPage/separate_sqlite.page");
const separateTest = require("./master_detail_page_tests/separate");

describe('Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await mdPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Master-Detail/SQLite")
})
mdTest(mdPage)
})

describe('Dual Panes Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await dualPage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Dual-Panes/SQLite")
})
dualTest(mdPage)
})

describe('Separated Master-Detail Page with MySQL', () => {
it('can open with the valid title.', async () => {
await separatePage.open()
await expect(browser).toHaveTitle("INTER-Mediator - Sample - Separate Master Page/SQLite")
})
separateTest(separatePage)
})
3 changes: 3 additions & 0 deletions spec/run/wdio-chrome.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ exports.config = {
'./test/specs/form_page_mysql.e2e.js',
'./test/specs/form_page_postgresql.e2e.js',
'./test/specs/form_page_sqlite.e2e.js',
'./test/specs/md_page_mysql.e2e.js',
'./test/specs/md_page_postgresql.e2e.js',
'./test/specs/md_page_sqlite.e2e.js',
'./test/specs/auth_page_basic_mysql.e2e.js',
'./test/specs/auth_page_basic_postgresql.e2e.js',
'./test/specs/auth_page_basic_sqlite.e2e.js',
Expand Down
3 changes: 3 additions & 0 deletions spec/run/wdio-edge.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ exports.config = {
'./test/specs/form_page_mysql.e2e.js',
'./test/specs/form_page_postgresql.e2e.js',
'./test/specs/form_page_sqlite.e2e.js',
'./test/specs/md_page_mysql.e2e.js',
'./test/specs/md_page_postgresql.e2e.js',
'./test/specs/md_page_sqlite.e2e.js',
'./test/specs/auth_page_basic_mysql.e2e.js',
'./test/specs/auth_page_basic_postgresql.e2e.js',
'./test/specs/auth_page_basic_sqlite.e2e.js',
Expand Down
3 changes: 3 additions & 0 deletions spec/run/wdio-firefox.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ exports.config = {
'./test/specs/form_page_mysql.e2e.js',
'./test/specs/form_page_postgresql.e2e.js',
'./test/specs/form_page_sqlite.e2e.js',
'./test/specs/md_page_mysql.e2e.js',
'./test/specs/md_page_postgresql.e2e.js',
'./test/specs/md_page_sqlite.e2e.js',
'./test/specs/auth_page_basic_mysql.e2e.js',
'./test/specs/auth_page_basic_postgresql.e2e.js',
'./test/specs/auth_page_basic_sqlite.e2e.js',
Expand Down
3 changes: 3 additions & 0 deletions spec/run/wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ exports.config = {
'./test/specs/form_page_mysql.e2e.js',
'./test/specs/form_page_postgresql.e2e.js',
'./test/specs/form_page_sqlite.e2e.js',
'./test/specs/md_page_mysql.e2e.js',
'./test/specs/md_page_postgresql.e2e.js',
'./test/specs/md_page_sqlite.e2e.js',
'./test/specs/auth_page_basic_mysql.e2e.js',
'./test/specs/auth_page_basic_postgresql.e2e.js',
'./test/specs/auth_page_basic_sqlite.e2e.js',
Expand Down

0 comments on commit a9751ec

Please sign in to comment.