test(docs-infra): make smoke tests more robust (#26649)
PR Close #26649
This commit is contained in:
parent
415e3e06ed
commit
b7d7609872
@ -29,6 +29,8 @@ describe(browser.baseUrl, () => {
|
|||||||
Object.keys(textPerUrl).forEach(url => {
|
Object.keys(textPerUrl).forEach(url => {
|
||||||
it(`should show the page at '${url}'`, () => {
|
it(`should show the page at '${url}'`, () => {
|
||||||
page.goTo(url);
|
page.goTo(url);
|
||||||
|
browser.wait(() => page.getDocViewerText(), 5000); // Wait for the document to be loaded.
|
||||||
|
|
||||||
expect(page.getDocViewerText()).toContain(textPerUrl[url]);
|
expect(page.getDocViewerText()).toContain(textPerUrl[url]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -47,6 +49,8 @@ describe(browser.baseUrl, () => {
|
|||||||
Object.keys(textPerUrl).forEach(url => {
|
Object.keys(textPerUrl).forEach(url => {
|
||||||
it(`should show the page at '${url}'`, () => {
|
it(`should show the page at '${url}'`, () => {
|
||||||
page.goTo(url);
|
page.goTo(url);
|
||||||
|
browser.wait(() => page.getDocViewerText(), 5000); // Wait for the document to be loaded.
|
||||||
|
|
||||||
expect(page.getDocViewerText()).toContain(textPerUrl[url]);
|
expect(page.getDocViewerText()).toContain(textPerUrl[url]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -68,6 +72,8 @@ describe(browser.baseUrl, () => {
|
|||||||
Object.keys(textPerUrl).forEach(url => {
|
Object.keys(textPerUrl).forEach(url => {
|
||||||
it(`should show the page at '${url}'`, () => {
|
it(`should show the page at '${url}'`, () => {
|
||||||
page.goTo(url);
|
page.goTo(url);
|
||||||
|
browser.wait(() => page.getDocViewerText(), 5000); // Wait for the document to be loaded.
|
||||||
|
|
||||||
expect(page.getDocViewerText()).toContain(textPerUrl[url]);
|
expect(page.getDocViewerText()).toContain(textPerUrl[url]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user