-
Notifications
You must be signed in to change notification settings - Fork 32
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
1 parent
86bf7d7
commit d8e88d6
Showing
6 changed files
with
46 additions
and
13 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
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
<input name="FirstName">Jane</input> | ||
<input name="LastName">Doe</input> | ||
<input name="Email">[email protected]</input> | ||
<select name="Country"> | ||
<option value="US" selected>United States</option> | ||
<option value="GB">United Kingdom</option> | ||
</select> | ||
<header></header> | ||
<main> | ||
<div> | ||
<input name="FirstName">Jane</input> | ||
<input name="LastName">Doe</input> | ||
<input name="Email">[email protected]</input> | ||
<select name="Country"> | ||
<option value="US" selected>United States</option> | ||
<option value="GB">United Kingdom</option> | ||
</select> | ||
</div> | ||
</main> | ||
<footer></footer> |
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,6 @@ | ||
<link rel="icon" href="data:,"> | ||
<meta name="aa-university" content="on"> | ||
<meta name="georouting" content="off"> | ||
<meta name="martech" content="off"> | ||
<meta name="header" content="off"> | ||
<meta name="footer" content="off"> |
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,21 @@ | ||
import { readFile } from '@web/test-runner-commands'; | ||
import { expect } from '@esm-bundle/chai'; | ||
import { mockFetch } from '../helpers/generalHelpers.js'; | ||
|
||
const ogFetch = window.fetch; | ||
|
||
document.body.innerHTML = await readFile({ path: './mocks/body.html' }); | ||
document.head.innerHTML = await readFile({ path: './mocks/head.html' }); | ||
|
||
describe('Scripts', async () => { | ||
before(async () => { | ||
await import('../../scripts/scripts.js'); | ||
}); | ||
|
||
it('Registers user into AA University', async () => { | ||
window.fetch = mockFetch(); | ||
window.dispatchEvent(new Event('mktoSubmit')); | ||
expect(window.fetch.called).to.be.true; | ||
window.fetch = ogFetch; | ||
}); | ||
}); |
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