-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from makeen-project/feature_ALS-1781_responsi…
…ve_demo_cases [Enhancements] Responsive automation
- Loading branch information
Showing
17 changed files
with
361 additions
and
297 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,24 +1,26 @@ | ||
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. */ | ||
/* SPDX-License-Identifier: MIT-0 */ | ||
|
||
import { Viewport } from "../support/constants"; | ||
|
||
describe("Unauth Simulation", () => { | ||
context("Desktop view", () => { | ||
beforeEach(() => { | ||
cy.visitDomain(`${Cypress.env("WEB_DOMAIN")}/demo`); | ||
}); | ||
|
||
it("US-001 - should allow user to use unauth simulation", () => { | ||
cy.useUnauthSimulation(false) | ||
cy.useUnauthSimulation(Viewport.DESKTOP); | ||
}); | ||
}); | ||
|
||
context("Responsive view", () => { | ||
beforeEach(() => { | ||
cy.visitDomainInResponsiveView(`${Cypress.env("WEB_DOMAIN")}/demo`); | ||
}); | ||
|
||
it("US-002 - should allow user to use unauth simulation", () => { | ||
cy.useUnauthSimulation(true) | ||
cy.useUnauthSimulation(Viewport.RESPONSIVE); | ||
}); | ||
}); | ||
}); | ||
}); |
14 changes: 8 additions & 6 deletions
14
cypress/e2e/userIsAbleToConnectAndDisconnectAwsAccount.cy.js
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 |
---|---|---|
@@ -1,26 +1,28 @@ | ||
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. */ | ||
/* SPDX-License-Identifier: MIT-0 */ | ||
|
||
import { Viewport } from "../support/constants"; | ||
|
||
describe("Connecting and Disconnecting AWS account", () => { | ||
context("Desktop view", () => { | ||
beforeEach(() => { | ||
cy.visitDomain(`${Cypress.env("WEB_DOMAIN")}/demo`); | ||
cy.connectAwsAccount(false); | ||
cy.connectAwsAccount(Viewport.DESKTOP); | ||
}); | ||
|
||
it("CDAA-001 - should allow user to connect, sign-in, sign-out and disconnect AWS account from sidebar", () => { | ||
cy.signOutAndDisconnectFromAwsAccount(false); | ||
cy.signOutAndDisconnectFromAwsAccount(Viewport.DESKTOP); | ||
}); | ||
}); | ||
|
||
context("Responsive view", () => { | ||
beforeEach(() => { | ||
cy.visitDomainInResponsiveView(`${Cypress.env("WEB_DOMAIN")}/demo`); | ||
cy.connectAwsAccount(true); | ||
cy.connectAwsAccount(Viewport.RESPONSIVE); | ||
}); | ||
|
||
it("CDAA-002 - should allow user to connect, sign-in, sign-out and disconnect AWS account from sidebar", () => { | ||
cy.signOutAndDisconnectFromAwsAccount(true); | ||
cy.signOutAndDisconnectFromAwsAccount(Viewport.RESPONSIVE); | ||
}); | ||
}); | ||
}); |
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
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.