Sfoglia il codice sorgente

Set defaults before each advanced options test

simov 7 anni fa
parent
commit
f57fa8fc17
4 ha cambiato i file con 28 aggiunte e 4 eliminazioni
  1. 7 1
      test/origin-add.js
  2. 7 1
      test/origin-csp.js
  3. 7 1
      test/origin-encoding.js
  4. 7 1
      test/origin-match.js

+ 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