-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re order the spec files for execution in CI/CD
- Loading branch information
Showing
23 changed files
with
183 additions
and
175 deletions.
There are no files selected for viewing
143 changes: 143 additions & 0 deletions
143
e2e/cypress/tests/01-api-key/03-request-access-inactive-env.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
// import ApiDirectoryPage from '../../pageObjects/apiDirectory' | ||
// import ApplicationPage from '../../pageObjects/applications' | ||
// import HomePage from '../../pageObjects/home' | ||
// import LoginPage from '../../pageObjects/login' | ||
// import NamespaceAccessPage from '../../pageObjects/namespaceAccess' | ||
// import Products from '../../pageObjects/products' | ||
// import MyAccessPage from '../../pageObjects/myAccess' | ||
|
||
// describe('Change an Active environment to Inactive', () => { | ||
// const login = new LoginPage() | ||
// const home = new HomePage() | ||
// const na = new NamespaceAccessPage() | ||
// const pd = new Products() | ||
|
||
// before(() => { | ||
// cy.visit('/') | ||
// cy.deleteAllCookies() | ||
// cy.reload() | ||
// }) | ||
|
||
// beforeEach(() => { | ||
// cy.preserveCookies() | ||
// cy.fixture('apiowner').as('apiowner') | ||
// // cy.visit(login.path) | ||
// }) | ||
|
||
// it('authenticates Janis (api owner)', () => { | ||
// cy.get('@apiowner').then(({ user, namespace }: any) => { | ||
// cy.login(user.credentials.username, user.credentials.password) | ||
// cy.log('Logged in!') | ||
// home.useNamespace(namespace) | ||
// }) | ||
// }) | ||
|
||
// it('Navigate to Products Page', () => { | ||
// cy.visit(pd.path) | ||
// }) | ||
|
||
// it('Change the current active environment to inactive state', () => { | ||
// cy.get('@apiowner').then(({ product }: any) => { | ||
// pd.editProductEnvironment(product.name, product.environment.name) | ||
// pd.editProductEnvironmentConfig(product.environment.config, true) | ||
// }) | ||
// }) | ||
|
||
// after(() => { | ||
// cy.logout() | ||
// cy.clearLocalStorage({ log: true }) | ||
// cy.deleteAllCookies() | ||
// }) | ||
// }) | ||
|
||
// describe('Verify enactive environment in rrequest access pop up', () => { | ||
// const apiDir = new ApiDirectoryPage() | ||
// const app = new ApplicationPage() | ||
// const myAccessPage = new MyAccessPage() | ||
|
||
// before(() => { | ||
// cy.visit('/') | ||
// cy.deleteAllCookies() | ||
// cy.reload() | ||
// }) | ||
|
||
// beforeEach(() => { | ||
// cy.preserveCookies() | ||
// cy.fixture('developer').as('developer') | ||
// // cy.visit(login.path) | ||
// }) | ||
|
||
// it('authenticates Harley (developer)', () => { | ||
// cy.get('@developer').then(({ user }: any) => { | ||
// cy.login(user.credentials.username, user.credentials.password) | ||
// }) | ||
// }) | ||
|
||
// it('creates an application', () => { | ||
// cy.visit(app.path) | ||
// cy.get('@developer').then(({ application }: any) => { | ||
// app.createApplication(application) | ||
// }) | ||
// }) | ||
|
||
// it('Verify that inactive environment is not displayed', () => { | ||
// cy.visit(apiDir.path) | ||
// cy.get('@developer').then(({ product, application }: any) => { | ||
// apiDir.checkInactiveEnvironmentAccessReqOption(product, application) | ||
// }) | ||
// }) | ||
|
||
// it('Close the popup by click on Cancel button', () => { | ||
// myAccessPage.cancelRequestAccessPopUp() | ||
// }) | ||
|
||
// after(() => { | ||
// cy.logout() | ||
// cy.clearLocalStorage({ log: true }) | ||
// cy.deleteAllCookies() | ||
// }) | ||
// }) | ||
|
||
// describe('Change an the environment back to active', () => { | ||
// const login = new LoginPage() | ||
// const home = new HomePage() | ||
// const na = new NamespaceAccessPage() | ||
// const pd = new Products() | ||
|
||
// before(() => { | ||
// cy.visit('/') | ||
// cy.deleteAllCookies() | ||
// cy.reload() | ||
// }) | ||
|
||
// beforeEach(() => { | ||
// cy.preserveCookies() | ||
// cy.fixture('apiowner').as('apiowner') | ||
// // cy.visit(login.path) | ||
// }) | ||
|
||
// it('authenticates Janis (api owner)', () => { | ||
// cy.get('@apiowner').then(({ user, namespace }: any) => { | ||
// cy.login(user.credentials.username, user.credentials.password) | ||
// cy.log('Logged in!') | ||
// home.useNamespace(namespace) | ||
// }) | ||
// }) | ||
|
||
// it('Navigate to Products Page', () => { | ||
// cy.visit(pd.path) | ||
// }) | ||
|
||
// it('Change the environment back to active state', () => { | ||
// cy.get('@apiowner').then(({ product }: any) => { | ||
// pd.editProductEnvironment(product.name, product.environment.name) | ||
// pd.editProductEnvironmentConfig(product.environment.config) | ||
// }) | ||
// }) | ||
|
||
// after(() => { | ||
// cy.logout() | ||
// cy.clearLocalStorage({ log: true }) | ||
// cy.deleteAllCookies() | ||
// }) | ||
// }) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.