Skip to content
Draft
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
6 changes: 5 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ jobs:
- name: Run Tests
uses: replayio/action-cypress@v0.1.4
with:
browser: ${{ github.event.inputs.browser || 'Replay Chromium' }}
browser: ${{ github.event.inputs.browser || 'Replay Firefox' }}
issue-number: ${{ steps.pr-number.outputs.result }}
apiKey: ${{ secrets.CYPRESS_REPLAY_API_KEY }}
public: true
env:
CYPRESS_BASE_URL: ${{ github.event.deployment_status.target_url || 'https://www.replayable.dev/' }}

- run: npx @replayio/replay ls
if: ${{ always() }}
shell: bash
14 changes: 0 additions & 14 deletions cypress.config.js

This file was deleted.

5 changes: 5 additions & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"screenshotOnRunFailure": false,
"video": false,
"baseUrl": "http://localhost:3000"
}
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/// <reference types="cypress" />

const cypressReplay = require("@replayio/cypress");

// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************

// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)

/**
* @type {Cypress.PluginConfig}
*/
// eslint-disable-next-line no-unused-vars
module.exports = (on, config) => {
cypressReplay.default(on, config);

return config;
};
Loading