itemengine-cypress-automation 1.0.352-IEI-6088-0a6a59e.0 → 1.0.352-IEI-6088-7069b7a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cypress/pages/index.js
CHANGED
package/package.json
CHANGED
@@ -1,32 +0,0 @@
|
|
1
|
-
// This file contains the selectors and steps for the item print preview page
|
2
|
-
const selectors = {
|
3
|
-
printPreviewButton: () => cy.get('button.ngie-button').contains(/^print preview$/i),
|
4
|
-
};
|
5
|
-
|
6
|
-
const steps = {
|
7
|
-
verifyPrintPreviewButton: () => {
|
8
|
-
itemPrintPreviewPage.printPreviewButton()
|
9
|
-
.should('exist')
|
10
|
-
.and('be.visible')
|
11
|
-
.and('contain.text', 'print preview')
|
12
|
-
.and('not.be.disabled');
|
13
|
-
},
|
14
|
-
clickPrintPreviewButton: () => {
|
15
|
-
itemPrintPreviewPage.printPreviewButton()
|
16
|
-
.should('exist')
|
17
|
-
.and('be.visible')
|
18
|
-
.and('contain.text', 'print preview')
|
19
|
-
.and('not.be.disabled')
|
20
|
-
.click();
|
21
|
-
},
|
22
|
-
verifyNoPrintPreviewErrors: () => {
|
23
|
-
// Check that error messages are not visible in the DOM
|
24
|
-
cy.contains('NGIE: Sorry, something went wrong.').should('not.exist');
|
25
|
-
cy.contains('NGIE: There was an error occured while rendering page.').should('not.exist');
|
26
|
-
},
|
27
|
-
};
|
28
|
-
|
29
|
-
export const itemPrintPreviewPage = {
|
30
|
-
...selectors,
|
31
|
-
steps,
|
32
|
-
};
|