| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7f948c7 commit 0e6ee9f
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,3 +66,7 @@ jobs: | |||
| 66 | 66 | run: | | |
| 67 | 67 | export OBSCURA_PATH="$HOME/obscura-bin/obscura" | |
| 68 | 68 | npm run test:unit:webbapi:obscura | |
| 69 | + - name: run obscura acceptance tests | ||
| 70 | + run: | | ||
| 71 | + export OBSCURA_PATH="$HOME/obscura-bin/obscura" | ||
| 72 | + ./bin/codecept.js run -c test/acceptance/codecept.Obscura.js --grep @Obscura --debug | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,32 @@ | |||
| 1 | + import TestHelper from '../support/TestHelper.js' | ||
| 2 | + import installCodeceptjs from '../support/install-codeceptjs.js' | ||
| 3 | + | ||
| 4 | + export const config = { | ||
| 5 | + tests: './*_test.js', | ||
| 6 | + timeout: 10, | ||
| 7 | + output: './output', | ||
| 8 | + grep: '@Obscura', | ||
| 9 | + helpers: { | ||
| 10 | + Obscura: { | ||
| 11 | + url: TestHelper.siteUrl(), | ||
| 12 | + }, | ||
| 13 | + ScreenshotSessionHelper: { | ||
| 14 | + require: '../support/ScreenshotSessionHelper.js', | ||
| 15 | + outputPath: 'test/acceptance/output', | ||
| 16 | + }, | ||
| 17 | + '@codeceptjs/expect-helper': {}, | ||
| 18 | + }, | ||
| 19 | + include: {}, | ||
| 20 | + bootstrap: installCodeceptjs, | ||
| 21 | + mocha: {}, | ||
| 22 | + plugins: { | ||
| 23 | + retryFailedStep: { | ||
| 24 | + enabled: true, | ||
| 25 | + }, | ||
| 26 | + }, | ||
| 27 | + name: 'acceptance', | ||
| 28 | + gherkin: { | ||
| 29 | + features: './gherkin/*.feature', | ||
| 30 | + steps: ['./gherkin/steps.js'], | ||
| 31 | + }, | ||
| 32 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,30 +1,30 @@ | |||
| 1 | 1 | Feature('Dynamic Config').config({ url: 'https://google.com' }) | |
| 2 | 2 | ||
| 3 | - Scenario('change config 1 @WebDriverIO @Puppeteer @Playwright', ({ I }) => { | ||
| 3 | + Scenario('change config 1 @WebDriverIO @Puppeteer @Playwright @Obscura', ({ I }) => { | ||
| 4 | 4 | I.amOnPage('/') | |
| 5 | 5 | I.dontSeeInCurrentUrl('github.com') | |
| 6 | 6 | I.seeInCurrentUrl('google.com') | |
| 7 | 7 | }) | |
| 8 | 8 | ||
| 9 | - Scenario('change config 2 @WebDriverIO @Puppeteer @Playwright', ({ I }) => { | ||
| 9 | + Scenario('change config 2 @WebDriverIO @Puppeteer @Playwright @Obscura', ({ I }) => { | ||
| 10 | 10 | I.amOnPage('/') | |
| 11 | 11 | I.seeInCurrentUrl('codecept.io') | |
| 12 | 12 | }).config({ url: 'https://codecept.io' }) | |
| 13 | 13 | ||
| 14 | - Scenario('change config 3 @WebDriverIO @Puppeteer @Playwright', ({ I }) => { | ||
| 14 | + Scenario('change config 3 @WebDriverIO @Puppeteer @Playwright @Obscura', ({ I }) => { | ||
| 15 | 15 | I.amOnPage('/') | |
| 16 | 16 | I.dontSeeInCurrentUrl('codecept.io') | |
| 17 | 17 | I.seeInCurrentUrl('google.com') | |
| 18 | 18 | }) | |
| 19 | 19 | ||
| 20 | - Scenario('change config 4 @WebDriverIO @Puppeteer @Playwright', ({ I }) => { | ||
| 20 | + Scenario('change config 4 @WebDriverIO @Puppeteer @Playwright @Obscura', ({ I }) => { | ||
| 21 | 21 | I.amOnPage('/') | |
| 22 | 22 | I.seeInCurrentUrl('codecept.io') | |
| 23 | 23 | }).config(test => { | |
| 24 | 24 | return { url: 'https://codecept.io/', capabilities: { 'moz:title': test.title } } | |
| 25 | 25 | }) | |
| 26 | 26 | ||
| 27 | - Scenario('change config 5 @WebDriverIO @Puppeteer @Playwright', ({ I }) => { | ||
| 27 | + Scenario('change config 5 @WebDriverIO @Puppeteer @Playwright @Obscura', ({ I }) => { | ||
| 28 | 28 | I.amOnPage('/') | |
| 29 | 29 | I.dontSeeInCurrentUrl('codecept.io') | |
| 30 | 30 | I.seeInCurrentUrl('google.com') | |
@@ -36,12 +36,12 @@ Scenario('make API call and check response @Playwright', ({ I }) => { | |||
| 36 | 36 | I.seeResponseCodeIsSuccessful() | |
| 37 | 37 | }) | |
| 38 | 38 | ||
| 39 | - Scenario('change config 6 @WebDriverIO @Puppeteer @Playwright', ({ I }) => { | ||
| 39 | + Scenario('change config 6 @WebDriverIO @Puppeteer @Playwright @Obscura', ({ I }) => { | ||
| 40 | 40 | I.amOnPage('/') | |
| 41 | 41 | I.seeInCurrentUrl('codecept.io') | |
| 42 | 42 | }).config({ url: 'https://codecept.io' }) | |
| 43 | 43 | ||
| 44 | - Scenario('simple page test @WebDriverIO @Puppeteer @Playwright', ({ I }) => { | ||
| 44 | + Scenario('simple page test @WebDriverIO @Puppeteer @Playwright @Obscura', ({ I }) => { | ||
| 45 | 45 | I.amOnPage('https://example.com') | |
| 46 | 46 | I.see('Example Domain') | |
| 47 | 47 | }) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - @Puppeteer @WebDriverIO @bdd | ||
| 1 | + @Puppeteer @WebDriverIO @bdd @Obscura | ||
| 2 | 2 | Feature: Site test | |
| 3 | 3 | In order to achieve my goals | |
| 4 | 4 | As a persona | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - @Puppeteer @WebDriverIO @bdd | ||
| 1 | + @Puppeteer @WebDriverIO @bdd @Obscura | ||
| 2 | 2 | Feature: Business rules | |
| 3 | 3 | In order to achieve my goals | |
| 4 | 4 | As a persona | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - @Playwright @Puppeteer @WebDriverIO @bdd @hookCapture | ||
| 1 | + @Playwright @Puppeteer @WebDriverIO @bdd @hookCapture @Obscura | ||
| 2 | 2 | Feature: Before hooks receive the real scenario | |
| 3 | 3 | ||
| 4 | 4 | Background: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - @Puppeteer @WebDriverIO @bdd | ||
| 1 | + @Puppeteer @WebDriverIO @bdd @Obscura | ||
| 2 | 2 | Feature: Business examples | |
| 3 | 3 | In order to achieve my goals | |
| 4 | 4 | As a persona | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,7 +106,7 @@ Scenario('within on nested iframe depth 2 and mixed class and xpath selector @We | |||
| 106 | 106 | I.dontSee('Email Address') | |
| 107 | 107 | }) | |
| 108 | 108 | ||
| 109 | - Scenario('should throw exception if element not found @WebDriverIO @Puppeteer @Playwright', async ({ I }) => { | ||
| 109 | + Scenario('should throw exception if element not found @WebDriverIO @Puppeteer @Playwright @Obscura', async ({ I }) => { | ||
| 110 | 110 | I.amOnPage('/form/textarea') | |
| 111 | 111 | await within('#grab-multiple', async () => { | |
| 112 | 112 | return await I.grabTextFrom('#first-link') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments