2019-12-12 07:50:53 +00:00
|
|
|
// ***********************************************************
|
|
|
|
|
// This example support/index.js is processed and
|
|
|
|
|
// loaded automatically before your test files.
|
|
|
|
|
//
|
|
|
|
|
// This is a great place to put global configuration and
|
|
|
|
|
// behavior that modifies Cypress.
|
|
|
|
|
//
|
|
|
|
|
// You can change the location of this file or turn off
|
|
|
|
|
// automatically serving support files with the
|
|
|
|
|
// 'supportFile' configuration option.
|
|
|
|
|
//
|
|
|
|
|
// You can read more here:
|
|
|
|
|
// https://on.cypress.io/configuration
|
|
|
|
|
// ***********************************************************
|
2020-04-02 04:47:48 +00:00
|
|
|
require("cypress-xpath");
|
2020-03-27 09:02:11 +00:00
|
|
|
const loginData = require("../fixtures/user.json");
|
|
|
|
|
const inputData = require("../fixtures/inputdata.json");
|
2020-03-20 14:21:24 +00:00
|
|
|
|
2019-12-12 07:50:53 +00:00
|
|
|
// Import commands.js using ES2015 syntax:
|
2020-03-27 09:02:11 +00:00
|
|
|
import "./commands";
|
|
|
|
|
before(function() {
|
|
|
|
|
cy.LogintoApp(loginData.username, loginData.password);
|
|
|
|
|
cy.SearchApp(inputData.appname);
|
|
|
|
|
});
|
2020-03-20 14:21:24 +00:00
|
|
|
|
2020-03-27 09:02:11 +00:00
|
|
|
beforeEach(function() {
|
|
|
|
|
Cypress.Cookies.preserveOnce("session_id", "remember_token");
|
|
|
|
|
});
|
2019-12-12 07:50:53 +00:00
|
|
|
|
2020-03-20 14:21:24 +00:00
|
|
|
after(function() {
|
2020-03-27 09:02:11 +00:00
|
|
|
cy.PublishtheApp();
|
|
|
|
|
});
|