Skip to content

Commit

Permalink
tweak browse test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Oct 12, 2018
1 parent bae5137 commit b69a4b8
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,4 +1,4 @@
describe('Profiles Datatable in the Sinopia BIBFRAME Editor', () => {
describe('Browse', () => {
beforeAll(async () => {
await page.goto('http://127.0.0.1:8000/');
});
Expand All @@ -10,7 +10,7 @@ describe('Profiles Datatable in the Sinopia BIBFRAME Editor', () => {
await expect(search_input).toMatch(/search/)
})

it('displays Profile table columns', async () => {
it('displays datatable columns', async () => {
const id_column = await page.$eval("#table_id > thead > tr > th:nth-child(1)", e => e.textContent)
const name_column = await page.$eval("#table_id > thead > tr > th:nth-child(2)", e => e.textContent)
const title_column = await page.$eval("#table_id > thead > tr > th:nth-child(3)", e => e.textContent)
Expand All @@ -27,7 +27,7 @@ describe('Profiles Datatable in the Sinopia BIBFRAME Editor', () => {
await expect(edit_column).toMatch(/edit/)
})

it('displays Previous and Next pagination links', async () => {
it('loads datatable js, which has Previous and Next pagination links', async () => {
const previous = await page.$eval('#table_id_previous', e => e.textContent)
const next = await page.$eval('#table_id_next', e => e.textContent)
await expect(previous).toMatch(/Previous/)
Expand Down

0 comments on commit b69a4b8

Please sign in to comment.