mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* Cypress tests for Editor 1. Test Navigation Bar elements * Updated ManageAppUsers.jsx Removed space from Share text * update clipboardy package location moved dependency from root to frontend package.json file * restored root package.json file removed clipboardy dependencies.
29 lines
No EOL
890 B
JavaScript
29 lines
No EOL
890 B
JavaScript
// ***********************************************************
|
|
// 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) => {
|
|
// `on` is used to hook into various events Cypress emits
|
|
// `config` is the resolved Cypress config
|
|
}
|
|
const clipboardy = require('clipboardy');
|
|
module.exports = (on, config) => {
|
|
on('task', {
|
|
getClipboard() {
|
|
return clipboardy.readSync();
|
|
}
|
|
});
|
|
}; |