Skip to content

Circleci project setup #17

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# Use a package of configuration called an orb.
orbs:
# Declare a dependency on the welcome-orb
welcome: circleci/welcome-orb@0.4.1
# Orchestrate or schedule a set of jobs
workflows:
# Name the workflow "welcome"
welcome:
# Run the welcome/run job in its own container
jobs:
- welcome/run
42 changes: 42 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: iOS starter workflow

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Build and Test default scheme using any available iPhone simulator
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
echo $default | cat >default
echo Using default scheme: $default
- name: Build
env:
scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }}
run: |
device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
- name: Test
env:
scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }}
run: |
device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
47 changes: 47 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
9 changes: 6 additions & 3 deletions extension/core/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ chrome.runtime.onConnect.addListener((port) => {

port.onMessage.addListener(panelListener);

port.onDisconnect.addListener(function () {
port.onDisconnect.addListener(function() {
port.onMessage.removeListener(panelListener);

// remove connection object
Expand Down Expand Up @@ -134,7 +134,10 @@ const sendData = (to, tabId) => {
}
}

const saveCatchData = (request, { id: tabId, title }, subType) => {
const saveCatchData = (request, {
id: tabId,
title
}, subType) => {

let {
data,
Expand Down Expand Up @@ -220,4 +223,4 @@ const setAppPopup = (isActive, tabId) => {
tabId,
popup: "popup/popup.html",
});
};
};
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"homepage": "https://github.com/deeppatel234/react-context-devtool#readme",
"dependencies": {
"classnames": "2.2.6",
"codemirror": "5.55.0",
"codemirror": "5.58.2",
"error-stack-parser": "2.0.6",
"jsondiffpatch": "0.4.1",
"jsonlint-mod": "1.7.5",
"jsonlint-mod": "1.7.6",
"object-assign": "4.1.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"react": "16.14.0",
"react-dom": "16.14.0",
"react-json-view": "1.19.1"
},
"devDependencies": {
Expand Down
14 changes: 14 additions & 0 deletions src/components/635374ed-f3bf-4419-88be-22e176eb5c9e.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html>
<head>
<title>2020-11-16-1-54-9.html</title>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,500,700" rel="stylesheet">
<style>
.thumbnail { max-width: 320px; max-height: 200px; }
h4 { font-weight: normal; font-family: 'Roboto Mono', monospace; font-size: 11px; }
h4.log-info { color: #333333; }
h4.log-error { color: #EA4335; }
</style>
</head>
<body>
<h4 class="log-info">[info] Playing test case katalon Recorder Cypress Canvas / Untitled Test Case</h4><h4 class="log-info">[info] Time: Mon Nov 16 2020 01:53:33 GMT-0800 (Pacific Standard Time) Timestamp: 1605520413029</h4><h4 class="log-info">[info] OS: Windows Version: 10</h4><h4 class="log-info">[info] Browser: Chrome Version: 86.0</h4><h4 class="log-info">[info] If the test cannot start, please refresh the active browser tab</h4><h4 class="log-info">[info] Executing: | open | https://www.bing.com/search?q=canvas+cypress+college&amp;form=ANNTH1&amp;refig=b6c042ee7856458faea0699db653742b&amp;sp=-1&amp;ghc=1&amp;pq=canvas+cypress+colle&amp;sc=6-20&amp;qs=n&amp;sk=&amp;cvid=b6c042ee7856458faea0699db653742b | |</h4><h4 class="log-info">[info] Executing: | click | link=Cypress College | |</h4><h4 class="log-info">[info] Executing: | click | link=Canvas | |</h4><h4 class="log-info">[info] Executing: | selectWindow | win_ser_1 | |</h4><h4 class="log-info">[info] Expand variable 'win_ser_1' into 'win_ser_1'</h4><h4 class="log-info">[info] Executing: | type | id=username | 01218066 |</h4><h4 class="log-info">[info] Executing: | type | id=password | Lift2019! |</h4><h4 class="log-info">[info] Executing: | click | name=submit | |</h4><h4 class="log-info">[info] Executing: | click | //div[@id='announcementWrapper']/div/div[2]/div/div[2]/a/i | |</h4><h4 class="log-info">[info] Wait until the element is found</h4><h4 class="log-info">[info] Stop executing</h4>
42 changes: 42 additions & 0 deletions src/components/canvastest-3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>katalon Recorder Cypress Canvas</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Untitled Test Case</td></tr>
</thead>
<tbody>
<tr><td>open</td><td>https://www.bing.com/search?q=canvas+cypress+college&amp;form=ANNTH1&amp;refig=b6c042ee7856458faea0699db653742b&amp;sp=-1&amp;ghc=1&amp;pq=canvas+cypress+colle&amp;sc=6-20&amp;qs=n&amp;sk=&amp;cvid=b6c042ee7856458faea0699db653742b<datalist><option>https://www.bing.com/search?q=canvas+cypress+college&amp;form=ANNTH1&amp;refig=b6c042ee7856458faea0699db653742b&amp;sp=-1&amp;ghc=1&amp;pq=canvas+cypress+colle&amp;sc=6-20&amp;qs=n&amp;sk=&amp;cvid=b6c042ee7856458faea0699db653742b</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>link=Cypress College<datalist><option>link=Cypress College</option><option>//a[contains(text(),'Cypress College')]</option><option>//ol[@id='b_results']/li/h2/a</option><option>//a[contains(@href, 'https://www.cypresscollege.edu/')]</option><option>//h2/a</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>link=Canvas<datalist><option>link=Canvas</option><option>//a[contains(text(),'Canvas')]</option><option>//li[@id='menu-item-31861']/a</option><option>//a[contains(@href, 'https://sso.nocccd.edu/#?service=https%3A%2F%2Fcypresscollege.instructure.com%2Flogin%2Fcas')]</option><option>//li[2]/a</option><option>css=#menu-item-31861 &gt; a</option></datalist></td><td></td>
</tr>
<tr><td>selectWindow</td><td>win_ser_1<datalist><option>win_ser_1</option></datalist></td><td></td>
</tr>
<tr><td>type</td><td>id=username<datalist><option>id=username</option><option>name=username</option><option>//input[@id='username']</option><option>//form[@id='fm1']/div/div/div/div/input</option><option>//input</option><option>css=#username</option></datalist></td><td>01218066</td>
</tr>
<tr><td>type</td><td>id=password<datalist><option>id=password</option><option>name=password</option><option>//input[@id='password']</option><option>//form[@id='fm1']/div[2]/div/div/input</option><option>//div[2]/div/div/input</option><option>css=#password</option></datalist></td><td>Lift2019!</td>
</tr>
<tr><td>click</td><td>name=submit<datalist><option>name=submit</option><option>//input[@name='submit']</option><option>//form[@id='fm1']/div[3]/input[4]</option><option>//input[4]</option><option>css=input[name="submit"]</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>//div[@id='announcementWrapper']/div/div[2]/div/div[2]/a/i<datalist><option>//div[@id='announcementWrapper']/div/div[2]/div/div[2]/a/i</option><option>//a/i</option><option>css=i.icon-x</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>xpath=(//button[@type='button'])[2]<datalist><option>xpath=(//button[@type='button'])[2]</option><option>//div[@id='announcementWrapper']/div/div/div[3]/span/button</option><option>//span/button</option><option>css=button.fOyUs_bGBk.fOyUs_fKyb.fOyUs_cuDs.fOyUs_cBHs.fOyUs_eWbJ.fOyUs_fmDy.fOyUs_eeJl.fOyUs_cBtr.fOyUs_fuTR.fOyUs_cnfU.fQfxa_bGBk</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>//div[@id='DashboardCard_Container']/div/div[3]/div/a/div/h3/span<datalist><option>//div[@id='DashboardCard_Container']/div/div[3]/div/a/div/h3/span</option><option>//div[3]/div/a/div/h3/span</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>xpath=(//a[contains(text(),'CIS 132 Excel Exam #2 Selitrennikoff (70 mins, 37 Tasks, 3 Tries, No Hints)')])[2]<datalist><option>xpath=(//a[contains(text(),'CIS 132 Excel Exam #2 Selitrennikoff (70 mins, 37 Tasks, 3 Tries, No Hints)')])[2]</option><option>//li[@id='context_module_item_536029']/div/div/div/span/a</option><option>xpath=(//a[contains(@href, '/courses/14755/modules/items/536029')])[2]</option><option>//div[14]/div[2]/ul/li[2]/div/div/div/span/a</option><option>css=#context_module_item_536029 &gt; div.ig-row.ig-published.student-view &gt; div.ig-info &gt; div.module-item-title &gt; span.item_name &gt; a.ig-title.title.item_link</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>link=Modules<datalist><option>link=Modules</option><option>//a[contains(text(),'Modules')]</option><option>//ul[@id='section-tabs']/li[3]/a</option><option>//a[contains(@href, '/courses/14755/modules')]</option><option>//div[2]/nav/ul/li[3]/a</option><option>css=a.modules</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>xpath=(//a[contains(text(),'CIS 132 Excel Practice Exam #2 Selitrennikoff (37 Tasks, 3 Tries, With Hints)')])[2]<datalist><option>xpath=(//a[contains(text(),'CIS 132 Excel Practice Exam #2 Selitrennikoff (37 Tasks, 3 Tries, With Hints)')])[2]</option><option>//li[@id='context_module_item_536028']/div/div/div/span/a</option><option>xpath=(//a[contains(@href, '/courses/14755/modules/items/536028')])[2]</option><option>//div[14]/div[2]/ul/li/div/div/div/span/a</option><option>css=#context_module_item_536028 &gt; div.ig-row.ig-published.student-view &gt; div.ig-info &gt; div.module-item-title &gt; span.item_name &gt; a.ig-title.title.item_link</option></datalist></td><td></td>
</tr>
</tbody></table>
</body>
</html>
44 changes: 44 additions & 0 deletions src/components/katalon Recorder Cypress Canvas.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Untitled Test Suite</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Untitled Test Case</td></tr>
</thead>
<tbody>
<tr><td>open</td><td>https://www.bing.com/search?q=canvas+cypress+college&amp;form=ANNTH1&amp;refig=b6c042ee7856458faea0699db653742b&amp;sp=-1&amp;ghc=1&amp;pq=canvas+cypress+colle&amp;sc=6-20&amp;qs=n&amp;sk=&amp;cvid=b6c042ee7856458faea0699db653742b<datalist><option>https://www.bing.com/search?q=canvas+cypress+college&amp;form=ANNTH1&amp;refig=b6c042ee7856458faea0699db653742b&amp;sp=-1&amp;ghc=1&amp;pq=canvas+cypress+colle&amp;sc=6-20&amp;qs=n&amp;sk=&amp;cvid=b6c042ee7856458faea0699db653742b</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>link=Cypress College<datalist><option>link=Cypress College</option><option>//a[contains(text(),'Cypress College')]</option><option>//ol[@id='b_results']/li/h2/a</option><option>//a[contains(@href, 'https://www.cypresscollege.edu/')]</option><option>//h2/a</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>link=Canvas<datalist><option>link=Canvas</option><option>//a[contains(text(),'Canvas')]</option><option>//li[@id='menu-item-31861']/a</option><option>//a[contains(@href, 'https://sso.nocccd.edu/#?service=https%3A%2F%2Fcypresscollege.instructure.com%2Flogin%2Fcas')]</option><option>//li[2]/a</option><option>css=#menu-item-31861 &gt; a</option></datalist></td><td></td>
</tr>
<tr><td>selectWindow</td><td>win_ser_1<datalist><option>win_ser_1</option></datalist></td><td></td>
</tr>
<tr><td>type</td><td>id=username<datalist><option>id=username</option><option>name=username</option><option>//input[@id='username']</option><option>//form[@id='fm1']/div/div/div/div/input</option><option>//input</option><option>css=#username</option></datalist></td><td>01218066</td>
</tr>
<tr><td>type</td><td>id=password<datalist><option>id=password</option><option>name=password</option><option>//input[@id='password']</option><option>//form[@id='fm1']/div[2]/div/div/input</option><option>//div[2]/div/div/input</option><option>css=#password</option></datalist></td><td>Lift2019!</td>
</tr>
<tr><td>click</td><td>id=username<datalist><option>id=username</option><option>name=username</option><option>//input[@id='username']</option><option>//form[@id='fm1']/div/div/div/div/input</option><option>//input</option><option>css=#username</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>name=submit<datalist><option>name=submit</option><option>//input[@name='submit']</option><option>//form[@id='fm1']/div[3]/input[4]</option><option>//input[4]</option><option>css=input[name="submit"]</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>//div[@id='announcementWrapper']/div/div[2]/div/div[2]/a/i<datalist><option>//div[@id='announcementWrapper']/div/div[2]/div/div[2]/a/i</option><option>//a/i</option><option>css=i.icon-x</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>xpath=(//button[@type='button'])[2]<datalist><option>xpath=(//button[@type='button'])[2]</option><option>//div[@id='announcementWrapper']/div/div/div[3]/span/button</option><option>//span/button</option><option>css=button.fOyUs_bGBk.fOyUs_fKyb.fOyUs_cuDs.fOyUs_cBHs.fOyUs_eWbJ.fOyUs_fmDy.fOyUs_eeJl.fOyUs_cBtr.fOyUs_fuTR.fOyUs_cnfU.fQfxa_bGBk</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>//div[@id='DashboardCard_Container']/div/div[3]/div/a/div/h3/span<datalist><option>//div[@id='DashboardCard_Container']/div/div[3]/div/a/div/h3/span</option><option>//div[3]/div/a/div/h3/span</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>xpath=(//a[contains(text(),'CIS 132 Excel Exam #2 Selitrennikoff (70 mins, 37 Tasks, 3 Tries, No Hints)')])[2]<datalist><option>xpath=(//a[contains(text(),'CIS 132 Excel Exam #2 Selitrennikoff (70 mins, 37 Tasks, 3 Tries, No Hints)')])[2]</option><option>//li[@id='context_module_item_536029']/div/div/div/span/a</option><option>xpath=(//a[contains(@href, '/courses/14755/modules/items/536029')])[2]</option><option>//div[14]/div[2]/ul/li[2]/div/div/div/span/a</option><option>css=#context_module_item_536029 &gt; div.ig-row.ig-published.student-view &gt; div.ig-info &gt; div.module-item-title &gt; span.item_name &gt; a.ig-title.title.item_link</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>link=Modules<datalist><option>link=Modules</option><option>//a[contains(text(),'Modules')]</option><option>//ul[@id='section-tabs']/li[3]/a</option><option>//a[contains(@href, '/courses/14755/modules')]</option><option>//div[2]/nav/ul/li[3]/a</option><option>css=a.modules</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>xpath=(//a[contains(text(),'CIS 132 Excel Practice Exam #2 Selitrennikoff (37 Tasks, 3 Tries, With Hints)')])[2]<datalist><option>xpath=(//a[contains(text(),'CIS 132 Excel Practice Exam #2 Selitrennikoff (37 Tasks, 3 Tries, With Hints)')])[2]</option><option>//li[@id='context_module_item_536028']/div/div/div/span/a</option><option>xpath=(//a[contains(@href, '/courses/14755/modules/items/536028')])[2]</option><option>//div[14]/div[2]/ul/li/div/div/div/span/a</option><option>css=#context_module_item_536028 &gt; div.ig-row.ig-published.student-view &gt; div.ig-info &gt; div.module-item-title &gt; span.item_name &gt; a.ig-title.title.item_link</option></datalist></td><td></td>
</tr>
</tbody></table>
</body>
</html>
Binary file added src/components/react-context-devtool-master.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. windows]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
package-lock.json
dist
Loading