Skip to content

Commit

Permalink
test: add retries
Browse files Browse the repository at this point in the history
  • Loading branch information
Kabir-Ivan committed Jul 9, 2024
1 parent 741f6a1 commit ffea142
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 42 deletions.
16 changes: 3 additions & 13 deletions lib/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,6 @@ main.container {
font-weight: normal;
}

.bullet_type-simple, .error__item-key {
display: inline-block;
height: 18px;
}

.section__title .bullet_type-simple:before,
.tests-group__title .bullet_type-simple.tests-group__bullet:before,
.state-title:after,
Expand Down Expand Up @@ -535,7 +530,7 @@ details[open] > .details__summary:before {
.meta-info__item {
display: flex;
word-wrap: break-word;
align-items: center;
margin-bottom: 5px;
}

.meta-info__item:last-child {
Expand All @@ -551,7 +546,6 @@ details[open] > .details__summary:before {
.meta-info__item-value {
display: grid;
grid-template-columns: repeat(2, auto);
align-items: center;
}

.custom-icon_view-local{
Expand All @@ -561,15 +555,11 @@ details[open] > .details__summary:before {
text-overflow: ellipsis;
}

.copy-button {
margin-left: 2px;
}

.meta-info__item .copy-button {
.meta-info__item .custom-icon_copy-to-clipboard {
opacity: 0;
}

.meta-info__item:hover .copy-button {
.meta-info__item:hover .custom-icon_copy-to-clipboard {
opacity: 1;
}

Expand Down
1 change: 1 addition & 0 deletions test/func/tests/.testplane.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ if (!projectUnderTest) {
const commonConfig = getCommonConfig(__dirname);

const config = _.merge(commonConfig, {
retry: 4,
baseUrl: `http://${serverHost}:${serverPort}/fixtures/${projectUnderTest}/report/index.html`,

sets: {
Expand Down
10 changes: 0 additions & 10 deletions test/func/tests/plugins/tests-basic-plugin.testplane.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
const {mkNestedSelector} = require('../../utils');

describe('Test basic plugin', function() {
// beforeEach(async ({browser}) => {
// await browser.execute(() => {
// let el = document.createElement('style');
// el.type = 'text/css';
// el.innerText = '.bullet_type-simple, .error__item-key, .image-box__screenshot-container_fixed-size, .sticky-header__content, .sticky-header__wrap { display: none; }';
// document.head.appendChild(el);
// }
// )
// });

it('should show tests result with plugins applied', async ({browser}) => {
const selector = mkNestedSelector(
'.section .section_status_error',
Expand Down
10 changes: 0 additions & 10 deletions test/func/tests/plugins/tests-menu-bar-plugin.testplane.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
describe('Test menu bar plugin', function() {
const selector = '.menu-bar__dropdown';

// beforeEach(async ({browser}) => {
// await browser.execute(() => {
// let el = document.createElement('style');
// el.type = 'text/css';
// el.innerText = '.bullet_type-simple, .error__item-key, .image-box__screenshot-container_fixed-size, .sticky-header__content, .sticky-header__wrap { display: none; }';
// document.head.appendChild(el);
// }
// )
// });

it('should show menu bar with plugins applied', async ({browser}) => {
await browser.$(selector).waitForDisplayed();
await browser.assertView('menu bar plugins', selector);
Expand Down
9 changes: 0 additions & 9 deletions test/func/tests/plugins/tests-redux-plugin.testplane.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
const {mkNestedSelector} = require('../../utils');

describe('Test redux plugin', function() {
// beforeEach(async ({browser}) => {
// await browser.execute(() => {
// let el = document.createElement('style');
// el.type = 'text/css';
// el.innerText = '.bullet_type-simple, .error__item-key { display: none; }';
// document.head.appendChild(el);
// }
// )
// });
it('should change plugin redux border color on click', async ({browser}) => {
const screenSelector = mkNestedSelector(
'.section .section_status_error',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/5c90021/chrome/basic plugins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/be4ff5b/chrome/basic plugins clicked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/d8c5b8a/chrome/redux plugin clicked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ffea142

Please sign in to comment.