-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
2,110 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
//const Page = require('./pageobjects/page'); | ||
//const ApplyPage = require('./pageobjects/apply.page') | ||
const AgreementPage = require('./pageobjects/agreement.page') | ||
const { expect } = require('chai'); | ||
const agreementPage = new AgreementPage() | ||
|
||
|
||
describe('The length of each document version should be correct', function() { | ||
it('the fla version with default values should have the right length', async function() { | ||
// FIXME add other generation steps | ||
await agreementPage.open(); | ||
await expect(agreementPage.applyResultHtmlFlaText).to.exist; | ||
await expect(agreementPage.htmlFlaTextLength).to.exist; | ||
await expect(agreementPage.htmlFlaTextLength).toEqual(17071); | ||
}) | ||
it('the fla entity version of the text with default version should have the right length', async function() { | ||
await agreementPage.open(); | ||
await expect(agreementPage.htmlFlaTextEntityLength).to.exist; | ||
}) | ||
}); | ||
|
||
describe('Basic Page load testing', function() { | ||
|
||
it('should show the right agreement title', async function() { | ||
await agreementPage.open(); | ||
const title = await agreementPage.pageTitle; | ||
expect(title).to.include('Contributor License Agreement Chooser') | ||
}); | ||
it('should get and log the url', async function() { | ||
const url = agreementPage.pageUrl; | ||
await console.log(url); | ||
// await expect(browser).toHaveUrlContaining('localhost') | ||
await expect(url).to.exist; | ||
}); | ||
|
||
}); | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//applyTests.js | ||
|
||
const ApplyPage = require('./pageobjects/apply.page') | ||
const { expect } = require('chai'); | ||
const applyPage = new ApplyPage() | ||
|
||
describe('texts should exist', function() { | ||
|
||
it('all the tabs should function', async function() { | ||
// FIXME add other generation steps | ||
await applyPage.open(); | ||
await applyPage.goThroughAll(); | ||
expect(applyPage.applyResultHtmlFlaText).to.exist; | ||
console.log(await applyPage.applyResultHtmlFlaText.getValue()); | ||
}) | ||
}); | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters