test - e2e-beta - separate notice tests into individual tests
This commit is contained in:
parent
564bb9f652
commit
e95fed06b7
|
@ -128,7 +128,7 @@ describe('MetaMask', function () {
|
||||||
await delay(regularDelayMs)
|
await delay(regularDelayMs)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('clicks through the privacy notice', async () => {
|
it('clicks through the ToS', async () => {
|
||||||
// terms of use
|
// terms of use
|
||||||
const canClickThrough = await driver.findElement(By.css('.tou button')).isEnabled()
|
const canClickThrough = await driver.findElement(By.css('.tou button')).isEnabled()
|
||||||
assert.equal(canClickThrough, false, 'disabled continue button')
|
assert.equal(canClickThrough, false, 'disabled continue button')
|
||||||
|
@ -138,12 +138,16 @@ describe('MetaMask', function () {
|
||||||
const acceptTos = await findElement(driver, By.css('.tou button'))
|
const acceptTos = await findElement(driver, By.css('.tou button'))
|
||||||
await acceptTos.click()
|
await acceptTos.click()
|
||||||
await delay(regularDelayMs)
|
await delay(regularDelayMs)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('clicks through the privacy notice', async () => {
|
||||||
// privacy notice
|
// privacy notice
|
||||||
const nextScreen = await findElement(driver, By.css('.tou button'))
|
const nextScreen = await findElement(driver, By.css('.tou button'))
|
||||||
await nextScreen.click()
|
await nextScreen.click()
|
||||||
await delay(regularDelayMs)
|
await delay(regularDelayMs)
|
||||||
|
})
|
||||||
|
|
||||||
|
it('clicks through the phishing notice', async () => {
|
||||||
// phishing notice
|
// phishing notice
|
||||||
const noticeElement = await driver.findElement(By.css('.markdown'))
|
const noticeElement = await driver.findElement(By.css('.markdown'))
|
||||||
await driver.executeScript('arguments[0].scrollTop = arguments[0].scrollHeight', noticeElement)
|
await driver.executeScript('arguments[0].scrollTop = arguments[0].scrollHeight', noticeElement)
|
||||||
|
|
Loading…
Reference in New Issue