restore-responsiveness-test
John McLear 2021-03-14 09:37:05 +00:00
parent 622a2be177
commit 96032ad361
2 changed files with 7 additions and 13 deletions

View File

@ -24,18 +24,11 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Cache node modules - uses: actions/cache@v2
uses: actions/cache@v2 id: cache
env:
cache-name: cache-node-modules
with: with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
@ -45,7 +38,8 @@ jobs:
shell: msys2 {0} shell: msys2 {0}
run: src/bin/installDeps.sh run: src/bin/installDeps.sh
- name: Install Cypress - name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install cypress -g run: npm install cypress -g
- name: Run Etherpad & Tests - name: Run Etherpad & Tests

View File

@ -43,10 +43,10 @@ Cypress.Commands.add('iframe', {prevSubject: 'element'},
describe(__filename, () => { describe(__filename, () => {
it('Makes edits to pad', () => { it('Makes edits to pad', () => {
let originalLineCount; let originalLineCount;
cy.visit('http://127.0.0.1:9001/p/collab', {timeout: 30000}); cy.visit('http://127.0.0.1:9001/p/collab', {timeout: 120000});
// Until we find a better way, this is required. // Until we find a better way, this is required.
cy.wait(10000); // wait for Minified JS to be built... cy.wait(10000); // wait for Minified JS to be built...
cy.get('iframe[name="ace_outer"]', {timeout: 30000}).iframe() cy.get('iframe[name="ace_outer"]', {timeout: 120000}).iframe()
.find('iframe[name="ace_inner"]').iframe() .find('iframe[name="ace_inner"]').iframe()
.find('.ace-line:first') .find('.ace-line:first')
.should('be.visible'); .should('be.visible');