Skip to content

Commit 4e439fc

Browse files
author
NarrowsProjects
committed
test push
1 parent ff73605 commit 4e439fc

1 file changed

Lines changed: 27 additions & 11 deletions

File tree

test/public/envs/detailsPage.test.js

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,16 @@ module.exports = () => {
111111
);
112112

113113
await waitForNavigation(page, () => pressElement(page, '#env-overview'));
114-
await waitForNavigation(page, () => pressElement(page, '#rowDxi029djX a:first-of-type'));
115-
await pressElement(page, '#raw-configuration-tab');
114+
try {
115+
await waitForNavigation(page, () => pressElement(page, '#rowDxi029djX a:first-of-type'));
116+
await pressElement(page, '#raw-configuration-tab');
117+
} catch (error) {
118+
const html = await page.content();
119+
120+
console.log(html);
121+
122+
throw error;
123+
}
116124

117125
await expectInnerText(
118126
page,
@@ -149,14 +157,22 @@ module.exports = () => {
149157
it('should successfully display FLP and ECS links', async () => {
150158
const containerSelector = '.flex-row.w-100.g2.items-baseline.mb3';
151159

152-
await expectLink(page, `${containerSelector} a:nth-of-type(1)`, {
153-
href:
154-
'http://localhost:8081/?q={%22partition%22:{%22match%22:%22CmCvjNbg%22},%22severity%22:{%22in%22:%22W%20E%20F%22}}',
155-
innerText: 'FLP',
156-
});
157-
await expectLink(page, `${containerSelector} a:nth-of-type(2)`, {
158-
href: 'http://localhost:8080/?page=environment&id=CmCvjNbg',
159-
innerText: 'ECS',
160-
});
160+
try {
161+
await expectLink(page, `${containerSelector} a:nth-of-type(1)`, {
162+
href:
163+
'http://localhost:8081/?q={%22partition%22:{%22match%22:%22CmCvjNbg%22},%22severity%22:{%22in%22:%22W%20E%20F%22}}',
164+
innerText: 'FLP',
165+
});
166+
await expectLink(page, `${containerSelector} a:nth-of-type(2)`, {
167+
href: 'http://localhost:8080/?page=environment&id=CmCvjNbg',
168+
innerText: 'ECS',
169+
});
170+
} catch (error) {
171+
const html = await page.content();
172+
173+
console.log(html);
174+
175+
throw error;
176+
}
161177
});
162178
};

0 commit comments

Comments
 (0)