Prechádzať zdrojové kódy

Set defaults before each advanced options test

simov 7 rokov pred
rodič
commit
f57fa8fc17

+ 7 - 1
test/origin-add.js

@@ -2,9 +2,15 @@
 var t = require('assert')
 
 
-module.exports = ({advanced, content}) => {
+module.exports = ({popup, advanced, content}) => {
 
   before(async () => {
+    // popup
+    await popup.bringToFront()
+    // defaults button
+    await popup.click('button:nth-of-type(2)')
+
+    // advanced
     await advanced.bringToFront()
 
     // remove origin

+ 7 - 1
test/origin-csp.js

@@ -2,9 +2,15 @@
 var t = require('assert')
 
 
-module.exports = ({extensions, advanced, content}) => {
+module.exports = ({extensions, popup, advanced, content}) => {
 
   before(async () => {
+    // popup
+    await popup.bringToFront()
+    // defaults button
+    await popup.click('button:nth-of-type(2)')
+
+    // advanced
     await advanced.bringToFront()
 
     // remove origin

+ 7 - 1
test/origin-encoding.js

@@ -2,9 +2,15 @@
 var t = require('assert')
 
 
-module.exports = ({advanced, content}) => {
+module.exports = ({popup, advanced, content}) => {
 
   before(async () => {
+    // popup
+    await popup.bringToFront()
+    // defaults button
+    await popup.click('button:nth-of-type(2)')
+
+    // advanced
     await advanced.bringToFront()
 
     // remove origin

+ 7 - 1
test/origin-match.js

@@ -2,9 +2,15 @@
 var t = require('assert')
 
 
-module.exports = ({advanced, content}) => {
+module.exports = ({popup, advanced, content}) => {
 
   before(async () => {
+    // popup
+    await popup.bringToFront()
+    // defaults button
+    await popup.click('button:nth-of-type(2)')
+
+    // advanced
     await advanced.bringToFront()
 
     // remove origin