Skip to content

Commit

Permalink
remove extra tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Aug 19, 2024
1 parent 80ca09d commit 01a526e
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions e2e/cypress/tests/20-gateways/01-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,57 +136,4 @@ describe('My Gateways list page', () => {
cy.deleteAllCookies()
})

})

describe.only('My Gateways list page', () => {
const ns = new NameSpacePage()
let userSession: any

before(() => {
cy.deleteAllCookies()
})

beforeEach(() => {
cy.preserveCookies()
cy.fixture('apiowner').as('apiowner')
cy.fixture('common-testdata').as('common-testdata')
})

it('authenticates Janis (api owner) to get the user session token', () => {
cy.getUserSessionTokenValue('', false).then((value) => {
userSession = value
})
})

it('create a set of namespaces', () => {
cy.get('@common-testdata').then(({ myGateways }: any) => {
gateways = myGateways
gateways["namespace1"] = gateways["namespace1"]
Cypress._.forEach(gateways, (gateway) => {
cy.createGateway(gateway.gatewayId + '-' + customId, gateway.displayName);
});
});
});

it('Verify My Gateways shows the created gateways', () => {
cy.visit(ns.listPath)
Cypress._.forEach(gateways, (gateway) => {
cy.get(`[data-testid="ns-list-item-${gateway.gatewayId + '-' + customId}"]`)
.should('contain.text', gateway.displayName)
});
})

it('Check Gateway link goes to details page', () => {
cy.visit(ns.listPath)
cy.get(`[data-testid="ns-list-activate-link-${gateways["namespace1"].gatewayId + '-' + customId}"]`).click()
cy.url().should('include', '/manager/gateways/detail')
cy.get('h1').should('contain.text', gateways["namespace1"].displayName)
})

after(() => {
cy.logout()
cy.clearLocalStorage({ log: true })
cy.deleteAllCookies()
})

})

0 comments on commit 01a526e

Please sign in to comment.